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:
parent
5e71e67051
commit
0f1dad919f
1 changed files with 14 additions and 1 deletions
|
@ -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>'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue