Skip to content

Commit f9ea89f

Browse files
authored
[#116] Prettify breaks HTML formatting (#117)
* [#116] Prettify breaks HTML formatting * log pretified html as debug for development support
1 parent 500202c commit f9ea89f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sphinx_simplepdf/builders/simplepdf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ def _toctree_fix(self, html):
356356

357357
heading.attrs["class"] = class_attr
358358

359-
return soup.prettify(formatter="html")
359+
logger.debug(soup.prettify(formatter="html"))
360+
return str(soup)
360361

361362

362363
def setup(app: Sphinx) -> Dict[str, Any]:

0 commit comments

Comments
 (0)