Hi Derek
Yea, kinda. So you're running Maven 2 embedded inside Eclipse? Where can
I find this plugin?
The thing is that when I run Maven 2.0.4 with maven-site-plugin
2.0-beta-5 I get the <p> tags that you are missing. Do you think that
you could try building the site from the command line using maven 2.0.4?
--
Dennis Lundberg
drekka wrote:
Hi Dennis,
I'm using the Eclipse 0.9.9 plugin I compiled a week ago from svn. I don't
have a ~.m2/plugin-registry.xml file. The version of the plugin sitting in
my ~.m2/repository/org/apache/plugins/maven-site-plugin is 2.0-beta-5.
Does that help ?
ciao
Derek
dennisl-2 wrote:
drekka wrote:
Hi Dennis, See below for results:
Hi Derek, thanks for your feedback.
What version of Maven and maven-site-plugin are you using?
For the plugin version you can check this in the plugin-registry.xml
file in your %USER_HOME%/.m2 directory.
--
Dennis Lundberg
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]