Uploaded image for project: 'Diagram Application'
  1. Diagram Application
  2. XADIAGRAM-9

Newlines in text on shapes does not display correctly.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0.4
    • Fix Version/s: None
    • Labels:
      None
    • Similar issues:

      Description

      If you create a diagram and include any multi-line text on any of the shapes in the diagram, when you save and view, the text appears corrupted. Instead it displays on a single line with the newline replaced by &.

      The problem is actually in the initialization code in reader.min.js. Prior to rendering the diagram, it does some replacements on the XML text to fix certain XML entity references, however, the one that is supposed to deal with newlines is incorrect. It's trying to replace with a newline character, however, it should be searching for 
 and replacing it with

      I just now need to figure out if this is a customer reader.min.js file for the Diagram application, or whether this is a bug that should also be submitted upstream to the draw.io team.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                brettski74 Brett Gersekowski
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: