]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Better handle id‐less pilcrows
[LesML] / parser.xslt
index d11dfe6ebfb263129928ec028ef274cf6875044e..2f028c2036f24f1dea89455a7fed05185663c4b5 100644 (file)
@@ -105,9 +105,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        <when test="starts-with($source, '¶')">
                                <choose>
                                        <when test="contains($source, ' ')">
-                                               <attribute name="id">
-                                                       <value-of select="substring-before(substring-after($source, '¶'), ' ')"/>
-                                               </attribute>
+                                               <variable name="id" select="substring-before(substring-after($source, '¶'), ' ')"/>
+                                               <if test="$id!=''">
+                                                       <attribute name="id">
+                                                               <value-of select="$id"/>
+                                                       </attribute>
+                                               </if>
                                                <value-of select="substring-after($source, ' ')"/>
                                        </when>
                                        <otherwise>
This page took 0.022252 seconds and 4 git commands to generate.