Versions
Sigil 0.9.10
Windows 10 - 64 bit
(Haven't tested on other OSes or older versions of Sigil)
The Bug
Attached is a sample EPUB.
Let's say you have an HTML file in Code View with an HTML comment in it:
Preview window syncs to each location fine... until you place your cursor on the line With/After the HTML comment on it.
Preview jumps all the way to the top of the file, instead of staying in the vicinity of the nearest <p>.
If you press Line 24, Preview is fine:
If you press anywhere in Line 25/26, Preview jumps to the top:
Code:
<p>Paragraph 14</p>|Fine
|Fine
<!--Comment 15-->|JumpsToTop
|JumpsToTop
<p>Paragraph 15</p>|Fine
|Fine
<p>Paragraph 16</p>|Fine
[...]
<p>Paragraph 29</p>|Fine
<!-- Comment 30-->|JumpsToTop
<p>Paragraph 30</p>|Fine
What you expect is:
Code:
<p>Paragraph 14</p>|Fine
|Fine
<!--Comment 15-->|StaysSameAsP14
|StaysSameAsP14
<p>Paragraph 15</p>|Fine
|Fine
<p>Paragraph 16</p>|Fine
[...]
<p>Paragraph 29</p>|Fine
<!-- Comment 30-->|StaysSameAsP29
<p>Paragraph 30</p>|Fine