You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, you can pass .render(pretty=False) , or set the is_pretty property to False on par (ie if you want to maintain the pretty formatting for the rest of the document):
Example: I'm trying to create a
p
element that contains the text "goodbye cruel world", i.e. with an inlinei
element:Result:
Why is there a linebreak
'\n'
inserted before (but not after) thei
element? (Which can amount to the addition of whitespace.)Alternatively, is there a way to directly specify the
innerHTML
of thep
element? Something likeThe text was updated successfully, but these errors were encountered: