We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Provide the HTML code <strong>Some bold text</strong> and <i>some italicized text</i>
<strong>Some bold text</strong> and <i>some italicized text</i>
Describe the bug In HTML, all of the text would be the same line:
However, because html-to-pdfmake generates separate entries for each tag, pdfmake puts them on different lines.
var dd = { "content": [ { "text": "Some bold text", "nodeName": "STRONG", "bold": true, "style": [ "html-strong" ] }, { "text": " and " }, { "text": "some italicized text", "nodeName": "I", "italics": true, "style": [ "html-i" ] } ], "styles": { "green": { "color": "green" } } }
I believe, if they were nested within a text entry, then pdfmake would keep them together.
text
var dd = { "content": [ { "text": [ { "text": "Some bold text", "nodeName": "STRONG", "bold": true, "style": [ "html-strong" ] }, { "text": " and " }, { "text": "some italicized text", "nodeName": "I", "italics": true, "style": [ "html-i" ] } ] } ], "styles": { "green": { "color": "green" } } }
The text was updated successfully, but these errors were encountered:
If you put them inside a <div> it should fix it.
<div>
Sorry, something went wrong.
Amazing! Thank you!
No branches or pull requests
Provide the HTML code
<strong>Some bold text</strong> and <i>some italicized text</i>
Describe the bug
In HTML, all of the text would be the same line:
However, because html-to-pdfmake generates separate entries for each tag, pdfmake puts them on different lines.
I believe, if they were nested within a
text
entry, then pdfmake would keep them together.The text was updated successfully, but these errors were encountered: