List text is broken up by hyphens
I'm seeing this html rendering issue with v2.0.4.
Given children:
<ul><li>Testing 1 2 3</li></ul>
The list text is unnecessarily broken up on to new lines.
While paragraph text renders correctly:
<p>Testing 1 2 3</p>
Output:
Other dependencies:
react-pdf: 9
@react-pdf/renderer: 3.4.4
@rohit8 is your Html element wrapped in other react-pdf elements? I wonder if it's inheriting parent styles or being constrained by a parent width.
@rohit8 I had the same issue with li tags
Solved by setting specific width for the Html element - <Html style={{ width: '100%' }}>{description}</Html>
Either downgrade to the 1.1.21 version
@danomatic https://github.com/danomatic/react-pdf-html/commit/2b9d02e58d687dc1d6b1439b09dd5ed470466df5