Author: gmcdonald
Date: Wed Oct  1 02:52:15 2008
New Revision: 700725

URL: http://svn.apache.org/viewvc?rev=700725&view=rev
Log:
ODT doesnt like lists inside <p> elements

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl?rev=700725&r1=700724&r2=700725&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
 Wed Oct  1 02:52:15 2008
@@ -111,7 +111,14 @@
           <text:a xlink:type="simple" xlink:href="[EMAIL 
PROTECTED]"><xsl:value-of select="."/></text:a>
         </xsl:template>
         <xsl:template match="p">
-                <text:p text:style-name="P2"><xsl:apply-templates/></text:p>
+          <xsl:choose>
+                  <xsl:when test="ol|ul">
+              <xsl:apply-templates/>
+            </xsl:when>
+            <xsl:otherwise>
+              <text:p text:style-name="P2"><xsl:apply-templates/></text:p>
+            </xsl:otherwise>
+          </xsl:choose>
         </xsl:template>
         <xsl:template match="ul">
                 <text:list>