rclsoff: modified to correctly handle exported google docs. Also improves handling regular libreoffice files: spaces were eaten around <span> tags

This commit is contained in:
Jean-Francois Dockes 2012-05-28 09:45:08 +02:00
parent 5e71e67051
commit 0f1dad919f

View file

@ -197,10 +197,23 @@ xsltproc --novalid --nonet - content.xml <<EOF
<xsl:output method="html" encoding="UTF-8"/> <xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="text:p"> <xsl:template match="text:p">
<p><xsl:value-of select="."/></p><xsl:text> <p><xsl:apply-templates/></p><xsl:text>
</xsl:text> </xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="text:h">
<p><xsl:apply-templates/></p><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="text:s">
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="text:line-break">
<br />
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
EOF EOF
echo '</body></html>' echo '</body></html>'