[PATCH 06/17] XHTML export: Specify the font-family for bullet points

andrew-libreoffice.org at pileofstuff.org andrew-libreoffice.org at pileofstuff.org
Thu Aug 14 14:53:46 PDT 2014


From: Andrew Sayers <andrew-libreoffice.org at pileofstuff.org>

---
 filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git filter/source/xslt/odf2xhtml/export/xhtml/body.xsl filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 6f3e980..fc018c4 100644
--- filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -2023,6 +2023,16 @@
 											<xsl:text>;min-width:</xsl:text>
 											<xsl:value-of select="$listLabelWidth"/>
 											<xsl:text>cm;</xsl:text>
+											<xsl:variable name="fontFamilyContent">
+												<xsl:value-of select="$listLevelStyle/style:text-properties/@fo:font-family"/>
+											</xsl:variable>
+											<xsl:choose>
+												<xsl:when test="$fontFamilyContent != ''">
+													<xsl:text>font-family:</xsl:text>
+													<xsl:value-of select="$fontFamilyContent"/>
+													<xsl:text>;</xsl:text>
+												</xsl:when>
+											</xsl:choose>
 										</xsl:attribute>
 										<xsl:variable name="labelContent">
 											<xsl:choose>
-- 
1.8.5.1



More information about the LibreOffice mailing list