Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with justify text and comma in end of line #637
Sometimes with justified text, the spaces between words are not well calculated and there is a space at the end of the line. This occurs when the line break coincides between a word and a comma. Previously (weasyprint 0.36) it happened that separated the comma from the word
I attach the minimum html with which I have been able to reproduce the problem.
I have the following versions:
I do understand what happens and what goes wrong but I'm unable to spot the place in source where to fix it. Ok, what happens:
The justify-me-text-block ist split into LineBoxes --
In the case of the faulty aligned line
In any case, problem and source of mis-justification is: The
I myself cannot find the place in source where to fix that. The layout-code muddles my brain...