filter/source/xslt/odf2xhtml/export/common/body.xsl | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 2a9c7f044f03533604e34216d5b8f6e217609832 Author: Peter Jentsch <pj...@guineapics.de> Date: Sun Nov 25 23:21:19 2012 +0100 fix fdo#56595 - FILESAVE: ToC links broken in xhtml export Change-Id: Ic79d4356902570084e024d8891307668b17d97f3 diff --git a/filter/source/xslt/odf2xhtml/export/common/body.xsl b/filter/source/xslt/odf2xhtml/export/common/body.xsl index 618b842..895bb41 100644 --- a/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -358,6 +358,10 @@ <xsl:value-of select="concat($href, $optionalURLSuffix)"/> </xsl:when> <!-- for relative URLs --> + <xsl:when test="starts-with($href, '#')"> + <!-- intra document ref --> + <xsl:value-of select="$href"/> + </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($sourceBaseURL, $href, $optionalURLSuffix)"/> </xsl:otherwise> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits