View Single Post
Old 09-24-2015, 01:53 PM   #12
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
Hi,

PrettyPrintGumbo normally works well for actual html5 tags and most others. That said, if given an unknown tag it will assume it is block tag and block tags always have carriage returns after them but in this case a block tag is occuring inside of a inline tag (the anchor) so it is confusing the prettyprint code.

I will look to see how to prevent multiple carriage returns from being added with each save when an unknown block tag is added inside of an inline tag.

Thanks for the head's up and test case!

KevinH


Quote:
Originally Posted by najgori View Post
here's funny bug. (windows 7/64 bit) put:
<p><a href="http://www.google.com"><mbp:nu>Google</mbp:nu></a></p>
at the start of empty ebook. press save. and again. and again.

pretty print gumbo does not work very well

solution is easy. don't clean and format file on save or open
KevinH is offline