Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-439

White space removed after verbatim block when going through the WYSIWYG editor

    XMLWordPrintable

Details

    • Unit
    • N/A
    • N/A

    Description

      Create a wiki page with this content:

      before {{{inside}}} after
      

      Edit the page again using the WYSIWYG editor and save without changing anything.

      You get:

      before insideafter
      

      You can reproduce the problem also with this code:

      {{velocity}}
      #set ($xdom = $services.rendering.parse('before {{{inside}}} after', 'xwiki/2.1'))
      #set ($xhtml = $services.rendering.render($xdom, 'xhtml/1.0'))
      $xhtml
      #set ($xdom = $services.rendering.parse($xhtml, 'xhtml/1.0'))
      $services.rendering.render($xdom, 'xwiki/2.1')
      {{/velocity}}
      

      The output is:

      <p>before <tt class="wikimodel-verbatim">inside</tt> after</p>
      before insideafter
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: