[Libreoffice-commits] dev-tools.git: helpauthoring/filter

Yousuf Philips philipz85 at hotmail.com
Tue Sep 8 05:20:33 PDT 2015


 helpauthoring/filter/soffice2xmlhelp.xsl |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2abf85b691cc27ea3c6832652226f78ada8229af
Author: Yousuf Philips <philipz85 at hotmail.com>
Date:   Tue Sep 8 15:39:50 2015 +0400

    Embed tags should be on their own line
    
    When embed tags arent preceeded by a newline, a group of embeds all get
    put on the same line and sometimes on a previous paragraph line.

diff --git a/helpauthoring/filter/soffice2xmlhelp.xsl b/helpauthoring/filter/soffice2xmlhelp.xsl
index 56f47d1..2534b39 100644
--- a/helpauthoring/filter/soffice2xmlhelp.xsl
+++ b/helpauthoring/filter/soffice2xmlhelp.xsl
@@ -395,6 +395,7 @@ EMBED
     <xsl:variable name="role"><xsl:value-of select="substring-before(substring-after(.,'role="'),'"')"/></xsl:variable>
     <xsl:variable name="level"><xsl:value-of select="substring-before(substring-after(.,'level="'),'"')"/></xsl:variable>
 
+    <xsl:call-template name="newline"/>
     <embed href="{$href}">
         <xsl:if test="not($role = '')"><xsl:attribute name="role"><xsl:value-of select="$role"/></xsl:attribute></xsl:if>
         <xsl:if test="not($level = '')"><xsl:attribute name="level"><xsl:value-of select="$level"/></xsl:attribute></xsl:if>


More information about the Libreoffice-commits mailing list