View Single Post
Old 11-10-2015, 07:07 AM   #33
JeffJ
Junior Member
JeffJ began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2015
Device: none
Quote:
Originally Posted by DiapDealer View Post
I don't think I was paying close-enough attention to what you were saying. Are you saying that Pretty-Print causes ToC titles to be truncated (when using Generate Table of Contents) where Gumbo-Parser does not? I'm not seeing that in my tests with your sample. I do see the newlines being included in the Table of Contents widget and in the NCX (which may or may not be be problematic by itself), but no truncation is happening for me.
If the code is this
<div id="header">
<h2 class="hdr-2" id="Ch01">Chapter 1:<br/>
Chapter Title</h2>
</div>
and the ToC is correct as in the first attachment.

If you then change the cleaning type to Pretty Gumbo and save the file (so the cleaning takes place) the code is modified to this (with the extra line)
<div id="header">
<h2 class="hdr-2" id="Ch01">Chapter 1:<br/>

Chapter Title</h2>
</div>
and the ToC is truncated as in the second attachment.

The Google Gumbo parser doesn't add the extra line.

The thing is that I don't think it really has anything to do with the gumbo parser at all. I think the problem is in whatever is generating the ToC. Please keep in mind that I'm not even close to an expert at html code at all so I might be totally wrong here, but I thought that extra lines were supposed to be ignored.
Attached Thumbnails
Click image for larger version

Name:	GoodToC.jpg
Views:	222
Size:	14.5 KB
ID:	143603   Click image for larger version

Name:	BadToC.jpg
Views:	210
Size:	13.8 KB
ID:	143604  
JeffJ is offline