View Single Post
Old 07-22-2020, 10:21 AM   #58
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: 9,409
Karma: 6733754
Join Date: Nov 2009
Device: many
You may want to take a look at the extras in sigil_bs4 versus normal bs4.

See: https://github.com/Sigil-Ebook/Sigil...s4/__init__.py

For "serialize_xhtml" near line 470 which tries to rebuild the source as close as possible to what was parsed, similar to how Sigil itself does it.
KevinH is offline   Reply With Quote