]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Fix note divs
[LesML] / parser.xslt
index 5ba22481500091cd93f14a5879c8bac631869336..01889ded6a738c5b548883d72e69444ea8ccfe8f 100644 (file)
@@ -658,7 +658,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                </element>
                                                        </element>
                                                </when>
-                                               <when test="starts-with($text, '⚠') and &sigiled-text;">
+                                               <when test="starts-with($text, '⚠') and &sigiled-text;">
                                                        <element name="div" namespace="&xhtml;">
                                                                <attribute name="role">
                                                                        <text>note</text>
@@ -802,6 +802,14 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </for-each>
                                        </element>
                                </when>
+                               <when test="not(processing-instruction()[local-name()='LesML-Continuation'])">
+                                       <copy>
+                                               <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
+                                               <for-each select="exslset:leading(following-sibling::node(), $notcontinuation)">
+                                                       <apply-templates select="node()" mode="LesML:finalize-tree"/>
+                                               </for-each>
+                                       </copy>
+                               </when>
                                <otherwise>
                                        <apply-templates select="node()" mode="LesML:finalize-tree"/>
                                        <for-each select="exslset:leading(following-sibling::node(), $notcontinuation)">
This page took 0.039433 seconds and 4 git commands to generate.