You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there's not enough height for a line of text on the current page, Prawn advances that line to the next page (handled by Prawn::Text::Formatted::Wrap). When this happens, the soft hyphens in that line are stripped. As a result, soft hyphens are absent when the line is rendered. This affects hyphenation. The soft hyphens should be preserved.
The text was updated successfully, but these errors were encountered:
). That call, in turn, calls Fragment#process_text, which removes soft hyphens.
If we look at the implementation for Fragment#include_trailing_white_space!, we see that it calls @format_state.delete(:exclude_trailing_white_space). So it seems like it was an oversight not to also call @format_state.delete(:normalized_soft_hyphen). Adding that line fixes the problem.
I ran all tests in Prawn and all 750+ tests in Asciidoctor PDF and can report that adding this line does not break any of the tests.
When there's not enough height for a line of text on the current page, Prawn advances that line to the next page (handled by
Prawn::Text::Formatted::Wrap
). When this happens, the soft hyphens in that line are stripped. As a result, soft hyphens are absent when the line is rendered. This affects hyphenation. The soft hyphens should be preserved.The text was updated successfully, but these errors were encountered: