write_html
skips one line when the line wraps inside a word (no spaces available for wrapping)
#847
Labels
write_html
skips one line when the line wraps inside a word (no spaces available for wrapping)
#847
The following code should write two strings on the same position.
Instead the blue string wraps in the correct way and is printed in the correct position, while the red string does wrap in the correct way, but is printed after skipping one empty line.
This is the output:

The code above is a simple minimal example, and it's hard to believe that one may need such a long text to correctly wrap. But in my real application I play with margins and use
write_html
to write formatted text in a table-like format (because tables do not allowfont
tags or other formatting techniques inside a cell.)Here is an example of the result of my function, where

write_html
has ben used to write text in different sizes and colors in a table format. Notice the text highlighted in red, which is shifted down one line:Environment
fpdf2
version used: 2.7.4The text was updated successfully, but these errors were encountered: