Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-67010

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.8.0, 7.12.0
    • Rich Text Editor

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              mdyro 🦊 Fox (Inactive)
              dsafady Dustin Safady (Inactive)
              Votes:
              39 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated: