Conversation
pydocx/parsers/Docx2Html.py
Outdated
There was a problem hiding this comment.
Rather than I direct style declaration, I think you would be better off by defining a set of CSS classes that pydocx will add to indicate things like this. Changing how those classes affect the output would be much easier than trying to strip out styles.
So how about class="pydocx-underline"?
There was a problem hiding this comment.
Also, for this pull request, you'll need to add a section to the readme about css classes used by the default HTML formatter that includes this.
There was a problem hiding this comment.
I know we want to do this with PolicyStat. Is this already done somewhere else, or should it be added to your transition document?
There was a problem hiding this comment.
This was not really working very well to begin with. Really it should have been called in a loop until the html stopped changing. I believe that the semantinator handles some of this.
There was a problem hiding this comment.
OK. Added that to your transition document.
|
Looks good |
u,i, andbare all deprecated. Use<span style="text-decoration: underline;">,em, andstronginstead.In addition, all self closing tags should be in the form
<%s />with the space and the trailing slash.