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
cb9a501561
commit
df91cff95f
@ -197,10 +197,23 @@ xsltproc --novalid --nonet - content.xml <<EOF
|
||||
<xsl:output method="html" encoding="UTF-8"/>
|
||||
|
||||
<xsl:template match="text:p">
|
||||
<p><xsl:value-of select="."/></p><xsl:text>
|
||||
<p><xsl:apply-templates/></p><xsl:text>
|
||||
</xsl:text>
|
||||
</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>
|
||||
EOF
|
||||
echo '</body></html>'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user