Skip to content

Render empty paragraph tags #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

botzill
Copy link
Contributor

@botzill botzill commented Feb 13, 2017

Here is a version simple version of rendering empty paragraph. Even more this will render all texts inside <p> this way we should not care about adding custom break line.

Example:

input(.docx):
screen shot 2017-02-13 at 2 39 34 pm

output html:
screen shot 2017-02-13 at 2 40 26 pm

output html source:

<ol class="pydocx-list-style-type-decimal">
    <li><p>AAA <span style="color:#FF0000">RRR</span></p>
        <p><span class="pydocx-underline"><em>Italic</em></span><span class="pydocx-underline"><em>U</em></span></p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></li>
    <li><p>BBB</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></li>
    <li><p>CCC</p></li>
</ol>

Note: tests not yet adapted.

Let me know if you have any feedback on this.

@botzill
Copy link
Contributor Author

botzill commented Feb 22, 2017

Closing this, new complete PR here: #234

@botzill botzill closed this Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant