dashingdove

Results 4 comments of dashingdove

> Can you use this to recreate a real line break? > > ```python > try: > self.run.add_break() > except AttributeError: #If is the first element parsed, self.run will not...

I can confirm this error occurs if you put a `` tag right at the start of a ``. If you put anything before the `` then it seems to...

The error also occurs when adding a `` to the start of a document. ``` document = docx.Document() html_parser = htmldocx.HtmlToDocx() html_parser.add_html_to_document('', document) #AttributeError ``` Basically, if the first thing...