Visual Text Editor: Code macro does not preserve line breaks from pasted text

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.8.0, 7.12.0, 8.20.30
    • Component/s: Rich Text Editor
    • 7.08
    • 6
    • Severity 3 - Minor
    • 1

      Summary

      When pasting text into a code macro within the visual text editor, this does not preserve line breaks. However, when pasting straight into the comment, it does preserve line breaks. We would expect the code macro to behave the same, especially in the case of code blocks where line breaks are important and need to be kept.

      Video of Issue: Code Macro - Line Breaks

      Steps to Reproduce

      1. Copy text from a document (or use a terminal command with multi line output; such as dig @8.8.8.8 google.com MX
      2. Using the Visual Mode in Jira, insert a "Code Block" or "Preformatted" macro
      3. Paste into the macro

      Expected Results

      The text is pasted with line breaks intact.

      Actual Results

      The text is not pasted with line breaks intact.

      Workaround

      Using the {code} or {noformat} macros in "Text" mode will preserve the line breaks.

            Assignee:
            🦊 Fox (Inactive)
            Reporter:
            Dustin Safady (Inactive)
            Votes:
            44 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated: