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
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><root>
* <a a1='one'>
* <b>3 &lt; 5</b>
* <c a2='two'>blah</c>
* </a>
* </root></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><root>
* <a a1='one'>
* <b>3 &lt; 5</b>
* <c a2='two'>blah</c>
* </a>
* </root></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