forked from xwiki-contrib/application-diagram
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
Partially styled elements from a paragraph are not correctly shown in XWiki PDF export #113
Comments
oanalavinia
added a commit
to oanalavinia/application-diagram
that referenced
this issue
Feb 5, 2020
… XWiki PDF export xwikisas#113 * refactoring * add bold and italic style for elements when needed
oanalavinia
added a commit
to oanalavinia/application-diagram
that referenced
this issue
Feb 5, 2020
… XWiki PDF export xwikisas#113 * if this paragraph has partially styled nodes, fallback to display only the text and ignore any bold, links.. elements
oanalavinia
added a commit
to oanalavinia/application-diagram
that referenced
this issue
Feb 6, 2020
… XWiki PDF export xwikisas#113 * refactoring * better variable names
oanalavinia
added a commit
to oanalavinia/application-diagram
that referenced
this issue
Feb 6, 2020
… XWiki PDF export xwikisas#113 * refactoring
The fix for this issue is to fallback to displaying only the text of those paragraphs, ignoring any styles. This is done since is too complex to calculate the coordinates of the styled node, considering that you have to look at the last node added and it may be needed to wrap the text. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
Expected result:: Styling is the same.
Actual result: The styled element is shown above the paragraph
Created:

PDF export:

The text was updated successfully, but these errors were encountered: