[ http://jira.codehaus.org/browse/DOXIA-16?page=comments#action_55079 ]
Aaron Bell commented on DOXIA-16: --------------------------------- The fix has the unfortunate side effect that <answer> elements may now only contain a maximum of one <source> element. For example, the following is broken: <answer> <p>The first approach for this entry is:</p> <source>some code</source> <p>Another approach would be:</p> <source>more code</source> </answer> As the first source tag is 'greedy' and displays the rest of the answer in the first source block. > Properly handle <source> inside <answer> > ---------------------------------------- > > Key: DOXIA-16 > URL: http://jira.codehaus.org/browse/DOXIA-16 > Project: doxia > Type: Bug > Versions: 1.0-alpha-3 > Reporter: Trygve Laugstol > Assignee: Emmanuel Venisse > Fix For: 1.0-alpha-4 > > > Given an <answer> like this: > <answer> > <p> > You must configure the source and target parameters in your pom. > For example, to set the source and target JVM > to 1.5, you should have in your pom : > </p> > <source><![CDATA[ > <build> > ... > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > ... > </build> > ]]></source> > </answer> > The content of the <source> tag will only contain the part until the first > <source> tag inside <configuration>. > For reference the issue in writeAnswer() in: > http://svn.doxia.codehaus.org/doxia-core/trunk/src/main/java/org/codehaus/doxia/module/fml/FmlParser.java?rev=94&view=auto -- 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