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

Verbatim inside monospace causes a space to be removed when going through the WYSIWYG editor

    XMLWordPrintable

Details

    • N/A
    • N/A

    Description

      To reproduce:

      • Create a page in xwiki/2.1 syntax with
        as ##{{{something}}}##
      • Edit in wysiwyg editor and save
      • You get "assomething" displayed (the space has vanished).

      To analyse the problem create a page with the following content:

      {{velocity}}
      #set ($xdom = $services.rendering.parse('as ##{{{something}}}##', 'xwiki/2.1'))
      #set ($wiki = $services.rendering.render($xdom, 'xwiki/2.1'))
      $wiki
      #set ($xhtml = $services.rendering.render($xdom, 'xhtml/1.0'))
      $xhtml
      #set ($xdom2 = $services.rendering.parse($xhtml, 'xhtml/1.0'))
      $services.rendering.render($xdom2, 'xwiki/2.1')
      {{/velocity}}
      

      This results in:

      as something
      <p>as <tt><tt class="wikimodel-verbatim">something</tt></tt></p>
      assomething
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: