mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-22 13:55:36 -06:00
Word breaks a line between two hyphens in a row, so a ruled line made of hyphens after a gap first fills the line and continues on the next. UAX #14 (LB21) keeps the hyphens together, so the whole row moved to the next line and the paragraph got one line more than in Word. Add the break after U+002D when another U+002D follows, next to the existing breaks before a digit and before a slash and a letter. Non-breaking hyphens and minus signs stay unbreakable. Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com> Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>