Zim

HTML export of paragraphs <p></p> is wrong

Bug #1624827 reported by Charles Nepote
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

Zim 0.65 under Ubuntu Linux 16.04.

The following Zim code:
A paragraph.
* A bullet point
* another one

Produce:
<p>A paragraph.<br>
<ul>
<li>A bullet point</li>
<li>another one</li>
</ul>
</p>

To be valid HTML, it should produce:
<p>A paragraph.</p>
<ul>
<li>A bullet point</li>
<li>another one</li>
</ul>

Tags: html
Revision history for this message
mtibbi (marcio-tibirica) wrote :

Checking HTML code generated by Zim 0.65 on Win10,
resulted in this code:

<p>
This is a paragraph.<br>
<ul>
<li>This is a bullet line.</li>
<li>another bullet line.</li>
</ul>
</p>

but, surprisingly, on Win7 resulted in the following code:

<p>
This is a paragraph.</p>
<ul>
<li>This is a bullet line.</li>
<li>another bullet line.</li>
</ul>

Revision history for this message
mtibbi (marcio-tibirica) wrote :

The difference between Win10 and Win7 is because I used different tools to see the code. In the case of Win7 I used the page Inspector. I did not remember that the page Inspector shows the code interpreted by the browser and not the source code. Checking on Notepad both source codes are identical. But based on Inspector information it seems the web browser can correct some inconsistencies in the HTML source code. I think this explains why despite the HTML source code is not valid the resulting web page is rendered correctly.

Changed in zim:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.