[JAVAEETUTORIAL-181] Multiple para elements inside a bullet point in an ItemizedList do not render properly in HTML (See 52.1.1) Created: 06/Jun/13  Updated: 10/Jun/13  Resolved: 10/Jun/13

Status: Resolved
Project: javaeetutorial
Component/s: None
Affects Version/s: 7.0.0
Fix Version/s: 7.0.2

Type: Improvement Priority: Major
Reporter: rcervera Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File figureInListCssFix.png     PNG File ListPara.PNG     PNG File paragraphsInListsCssFix.png    
Tags: html, template

 Description   

They look fine on the PDF. In the HTML, the paragraphs and an image are not separated by any space. I don't know whether to reorganize the content or try to fix the template.



 Comments   
Comment by Ian Evans [ 07/Jun/13 ]

See the attachment for what it looks like if I add the following CSS to javaee-darb-fonts.css:

ul .figure {
    padding-top: 10px;
}
Comment by rcervera [ 07/Jun/13 ]

Thanks Ian, that fixes the figure in this case. I am unsure if that change would have unintended consequences elsewhere.

Still the paragraphs inside the same bullet list item do not render properly, there is no space between them (see attachment). The easiest thing may be for me to rewrite this part without multiple paragraphs inside a bullet point if there's no other solution...

Comment by rcervera [ 07/Jun/13 ]

Paragraphs inside a list item not rendered properly.

Comment by Kim Haase [ 07/Jun/13 ]

I wouldn't change anything in the source, Ricardo – lots of chapters have lists (numbered as well as ordered) with multiple paragraphs, and we should really have a fix if possible.

Comment by Kim Haase [ 07/Jun/13 ]

The fix for figures looks good!

Comment by Ian Evans [ 07/Jun/13 ]

See the paragraphsInListsCssFix.png attachment for a fix for these by altering the following CSS style:

.javaee #mainContent li p {
    line-height:1.5em;
    padding: 0em 0em .5em 0em;
    margin:auto;
}
Comment by rcervera [ 07/Jun/13 ]

That's a great solution - thank you!

Comment by jendrock [ 10/Jun/13 ]

Since the fix looks good, could you please check it in, Ian? And then can you close the issue, since the problem is no longer there? Kim propagated the fix to the online docs on docs.oracle.com. Thanks.

Comment by Ian Evans [ 10/Jun/13 ]

Fixed online, and will be included in 7.0.2.

I'm tracking our local changes to the post-processor template files in the project wiki here:
https://java.net/projects/javaeetutorial/pages/JavaEEPostProcessorBugFixes

Generated at Mon Dec 05 04:11:46 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.