[Libreoffice-commits] core.git: 2 commits - filter/source

Robert Antoni Buj Gelonch robert.buj at gmail.com
Thu May 14 05:22:01 PDT 2015


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

New commits:
commit ebe4eb9d0ab2759d7631dd2a967a7031da7e4c5e
Author: Robert Antoni Buj Gelonch <robert.buj at gmail.com>
Date:   Thu May 14 13:03:30 2015 +0200

    odf2xhtml: #tdf66999 there is no attribute 'name'
    
    Change-Id: I47a14951a23539ea90489baede93a9d1c7b5dcc9
    Reviewed-on: https://gerrit.libreoffice.org/15729
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 6135da8..59a662a 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -2909,7 +2909,7 @@
 
 	<xsl:template match="text:bookmark|text:bookmark-start">
 		<xsl:element name="a">
-			<xsl:attribute name="name">
+			<xsl:attribute name="id">
 				<xsl:value-of select="@text:name"/>
 			</xsl:attribute>
 		</xsl:element>
commit 070f0abd4413102cb442bc5d3d39c1c530e8d4c6
Author: Robert Antoni Buj Gelonch <robert.buj at gmail.com>
Date:   Thu May 14 12:41:36 2015 +0200

    odf2xhtml: #tdf66999 character '–' is not allowed in the value of attribute 'id'
    
    Change-Id: Ieef0f28a9caa830e24349e58a0b1ff9b04c6fe56
    Reviewed-on: https://gerrit.libreoffice.org/15728
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 8a3e701..6135da8 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -1262,7 +1262,7 @@
 		<!-- REFERENCE HANDLING - ANCHOR -->
 		<xsl:element namespace="{$namespace}" name="a">
 			<xsl:attribute name="id">
-				<xsl:value-of select="translate(concat('a_',normalize-space($headingNumber), '_', normalize-space($title)), '&#xA;&<>.,;: %()[]/\+', '___________________________')"/>
+				<xsl:value-of select="translate(concat('a_',normalize-space($headingNumber), '_', normalize-space($title)), '&#xA;&<>–.,;: %()[]/\+', '____________________________')" disable-output-escaping="yes"/>
 			</xsl:attribute>
 
 			<xsl:element name="span">


More information about the Libreoffice-commits mailing list