Forum Bugs

Inconsistent line breaking at hyphens

Johann
Prince line-breaks inconsistently at hyphens within the same token. For the string "SIF-DQHF-03.02.04" in a narrow block, it breaks after the first hyphen (SIF-) but does not break after the second hyphen (DQHF-), causing overflow.

Example:

<!doctype html>
<html lang="en">
<head>
  <title>Narrow block wrap demo</title>
  <style>
    .box {
      width: 60px;   /* very narrow */
      border: 1px solid blue;
      padding: 8px;
    }
  </style>
</head>
<body>
  <p>String printed in a very narrow block:</p>
  <div class="box">
    SIF-DQHF-03.02.04
  </div>
</body>
</html>


Note: Also the property prince-hyphenate-limit-lines does not help.

- - -
Johann