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

Code macro fails to escape "broken" Wiki syntax

    XMLWordPrintable

Details

    • Unit

    Description

      Not sure if this is a feature or a bug, but just in case... The code macro fails to render the following snippet:

      {{code}}
      SELECT * FROM XYZ -- this will select from XYZ
      {{/code}}
      

      This outputs no result (seems to be because of the double dash). This also starts to become an issue when pasting snippets like the following:

      {{code}}
      int x = 5;
      System.out.println(--x);
      {{/code}}
      

      This also fails to render properly when pasted into the GWT editor...

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              orangerd Lewis Denizen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: