Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-31476

Code macro should wrap long lines

    XMLWordPrintable

    Details

    • UIS:
      15
    • Support reference count:
      3
    • Feedback Policy:
      We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      In past versions of the code macro, long lines were wrapped up. This feature was implemented in NCODE-142.

      The wrap up of the long lines caused a problem with a mismatch between the line numbers and the actual line. To solve this bug (CONF-23565) we removed the functionality to wrap up text.

      There should be an option to wrap up text in the code macro. Adding a scroll bar may work on a web browser but it is not a good solution for PDF exports or print outs.

      Affected version of the code macro plugin: 2.1.3.

      Workaround:

      Add the following CSS to the global stylesheet:

      .codeContent .syntaxhighlighter table td.code .container .line {
          white-space: normal!important;
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              aconde Alejandro Conde Carrillo (Inactive)
              Votes:
              141 Vote for this issue
              Watchers:
              79 Start watching this issue

                Dates

                Created:
                Updated: