Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1118

line breaks splitting words in spreadsheet - regular spaces replaces by nbsp

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.8.2
    • Component/s: None
    • Security Level: Jean
    • Labels:
      None

      Description

      https://github.com/zkoss/zkspreadsheet/blob/10656553b78b5785b84f04b6c6cdbbdfb1c3a01e/zssmodel/src/org/zkoss/zss/model/util/RichTextHelper.java#L207

      white space (' ') in cells are replaced by nbsp in zss 3.8.0+
      Cause the whole string to be considered as a single word when wrapping text.

      css property white-space: pre-wrap; might be used instead to keep both the wrapping and to display white spaces in browser.

      attached example:
      1 - in index.zul, change src="/WEB-INF/resources/2223/blank.xlsx" to refer to blank.xsls.
      2 - run zul file
      3 - click on the wrap button to add text/wrapping

        Attachments

        1. blank.xlsx
          9 kB
        2. index.zul
          0.5 kB

          Issue Links

            Activity

              People

              • Assignee:
                henrichen henrichen
                Reporter:
                MDuchemin MDuchemin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: