View Single Post
Old 04-14-2026, 04:47 PM   #16
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 988
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
Hmmm… Strange.

Even after applying the patch, this is what it looks like after running the plugin five times.
I can see that:
a) empty lines are added before the DOCTYPE, link and style tags
b) closing block tags have an unnecessary space before them (see e.g. /head, /tr, /html)
c) there are no spaces before thead, tbody and tfoot, but this is a minor issue as they can be added to the prettyprinter.pcss file

Spoiler:

Code:
<?xml version="1.0" encoding="utf-8"?>











<!DOCTYPE html>

 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> 
<head> 
  <title>test</title>




  <link href="../Styles/style.css" type="text/css" rel="stylesheet"/>




  <style></style>
 </head>
 

<body>
 

  <h1>Chapter</h1>

 
  <p>*</p>

 
  <table><thead> 
      <tr> 
        <th>sample text</th>
 
        <th>sample text</th>
 
        <th>sample text</th>
 
        <th>sample text</th>
       </tr>
     </thead><tbody> 
      <tr style="color: blue;"> 
        <td>sample text</td>
 
        <td>sample text</td>
 
        <td>sample text</td>
 
        <td>sample text</td>
       </tr>
 
      <tr> 
        <td>sample text</td>
 
        <td>sample text</td>
 
        <td style="color:red;">sample text</td>
 
        <td>sample text</td>
       </tr>
 
      <tr> 
        <td>sample text</td>
 
        <td class="big">sample text</td>
 
        <td>sample text</td>
 
        <td>sample text</td>
       </tr>
     </tbody><tfoot> 
      <tr> 
        <td colspan="4">sample text</td>
       </tr>
     </tfoot></table>
 
</body>
 </html>



Another (aesthetic) issue arises when we first run Sigil’s Prettify function and then run the plugin. It then adds unnecessary spaces, resulting in this:
Code:
<td> sample text </td>
BeckyEbook is offline   Reply With Quote