[ 
http://jira.codehaus.org/browse/MGROOVY-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Dillon updated MGROOVY-176:
---------------------------------

    Fix Version/s:     (was: 1.0-rc-5)
                   1.1

> Generated stubs have whitespace compressed in comments
> ------------------------------------------------------
>
>                 Key: MGROOVY-176
>                 URL: http://jira.codehaus.org/browse/MGROOVY-176
>             Project: GMaven
>          Issue Type: Bug
>          Components: stub generation
>    Affects Versions: 1.0-rc-3
>            Reporter: Tom Nichols
>            Assignee: Jason Dillon
>            Priority: Minor
>             Fix For: 1.1
>
>
> Groovy -> java stub generation removes extra whitespace from JavaDoc 
> comments.  This is fine, except in a {{<pre>}} formatted section.  i.e.
> In StreamingMarkupBuilder.groovy:
> {code:java}
> /**
>  * <p>A builder class for creating XML markup.  This implementation uses a 
>  * {...@link java.lang.Writer} to handle output.   </p>     
>  * 
>  *    <p>   Example:</p>
>  * <pre>new StreamingMarkupBuilder().bind {
>  *   root {
>  *     a( a1:'one' ) {
>  *       b { mkp.yield( '3 < 5' ) }
>  *       c( a2:'two', 'blah' )
>  *     }
>  *   }
>  * }.toString()</pre>
>  * Will return the following String, without newlines or indentation:  
>  * <pre>&lt;root&gt;
>  *   &lt;a a1='one'&gt;
>  *     &lt;b&gt;3 &amp;lt; 5&lt;/b&gt;
>  *     &lt;c a2='two'&gt;blah&lt;/c&gt;
>  *   &lt;/a&gt;
>  * &lt;/root&gt;</pre> 
>  *
>  */
> class StreamingMarkupBuilder extends AbstractStreamingBuilder {
> {code}
> turns into this in the Java stub:
> {code:java}
> /**
>  * <p>A builder class for creating XML markup. This implementation uses a
>  * {...@link java.lang.Writer} to handle output. </p>
>  * 
>  * <p> Example:</p>
>  * <pre>new StreamingMarkupBuilder().bind {
>  * root {
>  * a( a1:'one' ) {
>  * b { mkp.yield( '3 < 5' ) }
>  * c( a2:'two', 'blah' )
>  * }
>  * }
>  * }.toString()</pre>
>  * Will return the following String, without newlines or indentation:
>  * <pre>&lt;root&gt;
>  * &lt;a a1='one'&gt;
>  * &lt;b&gt;3 &amp;lt; 5&lt;/b&gt;
>  * &lt;c a2='two'&gt;blah&lt;/c&gt;
>  * &lt;/a&gt;
>  * &lt;/root&gt;</pre>
>  */
> public class StreamingMarkupBuilder
>     extends AbstractStreamingBuilder
> {
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to