Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22026

CKEditor / Xwiki 2.1 Syntax: Strange Behaviour With Verbatim Blocks, Brackets and Newlines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.10.7
    • CKEditor, Rendering - XWiki
    • None
    • Unknown

    Description

      The different behaviour of the following Verbatim block is somewhat surprising:

      {{{
      public static void nothing() {
          // nothing
      }
      }}}
      
      ----
      
      {{{
      public static void nothing() {
          // nothing
      }}}}
      
      ----
      
      {{{
      public static void nothing() {
          // nothing
      x}}}
      

      See what happens in the following screencast:

      1. First, the rendering is more or less as expected, however we can already see a somewhat differing font rendering between the middle example on one hand, and the first and last one on the other hand.
      2. Opening the page in the WYSIWYG editor then shreds the layout of the middle example completely.
      3. As we can see in the source view, also the source code is garbled / shredded, with all newlines gone.
      4. Interestingly, this does not happen with the last example, which also includes an additional character on the closing line of the block, however a regular letter (x) instead of an additional closing bracket.


      This is reproducible.

      • Xwiki LTS 15.10.7
      • Browser Chromium Version 122.0.6261.94 (Offizieller Build) snap (64-Bit)
      • Ubuntu 22.04 (KDE neon actually)

      Attachments

        Activity

          People

            Unassigned Unassigned
            GOhrner Gunter Ohrner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: