avinash-k / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

source tag fails to render groovy source properly #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. i am using vosao cms that uses the gwtwiki engine.
2. i am having the following wiki snippet:

<source lang="groovy">
import groovy.xml.StreamingMarkupBuilder
import groovy.xml.XmlUtil

def input = '''
<shopping>
   <category type="groceries">
       <item>Chocolate</item>
       <item>Coffee</item>
   </category>
   <category type="supplies">
       <item>Paper</item>
       <item quantity="4">Pens</item>
   </category>
   <category type="present">
       <item when="Aug 10">Kathryn's Birthday</item>
   </category>
</shopping>
'''
</source>

3. the formatting of the groovy source between the ''' characters fails because 
of the single ' that is contained in content:

> Kathryn's Birthday
        ^^^

if you have any questions, please ask.

Original issue reported on code.google.com by andreas....@gmail.com on 26 Apr 2011 at 6:27

GoogleCodeExporter commented 8 years ago
Fixed with r3230

Original comment by axelclk@gmail.com on 27 Apr 2011 at 7:55