maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drekka <derek.clark...@aegeon.com.au>
Subject Re: xdoc paragraphs
Date Tue, 09 Jan 2007 23:02:28 GMT

Hi Dennis, See below for results: 


dennisl-2 wrote:
> 
> Hi
> 
> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
> SVN. Here's the xdoc file I used to test it. Can you test with this file 
> and see if it is working properly for you. If it does please provide a 
> file that don't work.
> 
> <?xml version="1.0"?>
> <document>
>    <body>
>      <section name="section 1">
>        <subsection name="subsection 1">
>         <p>paragraph 1 in subsection 1</p>
>         <ul>
>           <li>list item 1</li>
>           <li>list item 2</li>
>         </ul>
>         <p>paragraph 2 in subsection 1</p>
>        </subsection>
>        <subsection name="subsection 2">
>          <p>paragraph 1 in subsection 2</p>
>        </subsection>
>      </section>
>    </body>
> </document>
> 

Here's the code generated from your test code:

<div class="section"><h2>section 1</h2>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        paragraph 2 in subsection 1
       </div>
         <div class="section"><h3>subsection 2</h3>
         paragraph 1 in subsection 2
       </div>
     </div>

Notice that the only <p> tags to survive are the ones before the list. I
then expanded your test code to include more paragraphs:

<?xml version="1.0"?>
<document>
   <body>
     <section name="section 1">
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
       <subsection name="subsection 1">
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        <p>paragraph 5 in subsection 1</p>
       </subsection>
       <subsection name="subsection 2">
         <p>paragraph 1 in subsection 2</p>
       </subsection>
     </section>
   </body>
</document>

And the results:

       <div class="section"><h2>section 1</h2>
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        paragraph 5 in subsection 1
       </div>
         <div class="section"><h3>subsection 2</h3>
         paragraph 1 in subsection 2
       </div>
     </div>

Again no <p> tags after the list. Now lets take the list out:

<?xml version="1.0"?>
<document>
   <body>
     <section name="section 1">
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
       <subsection name="subsection 1">
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <p>paragraph 5 in subsection 1</p>
       </subsection>
       <subsection name="subsection 2">
         <p>paragraph 1 in subsection 2</p>
       </subsection>
     </section>
   </body>
</document>

And the results:

       <div class="section"><h2>section 1</h2>
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <p>paragraph 5 in subsection 1</p>
       </div>
         <div class="section"><h3>subsection 2</h3>
         <p>paragraph 1 in subsection 2</p>
       </div>
     </div>

<p> tags are now back in. My guess is that the code the processes lists is
activating a flag to remove <p> tags so it can format the list correctly.
But is failing to deactivate the flag after processing the list. Thereby
removing all <p> tags after the list.

ciao
Derek



 

-- 
View this message in context: http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8248691
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message