]> Lady’s Gitweb - LesML/commitdiff
Wrap results in a div
authorLady <redacted>
Sat, 26 Apr 2025 03:24:11 +0000 (23:24 -0400)
committerLady <redacted>
Tue, 31 Mar 2026 02:04:51 +0000 (22:04 -0400)
Even in the case where there is only one document, there may be
  additional document comments which should be grouped alongside it and
  not intermixed with any comments in the surrounding area.
For the case when there is only one document and nothing else, not
  even a comment, it is probably better to still wrap the output for
  consistency.

parser.xslt

index 1fb346b18e1607be99b7fab09ee9c76da44fcdb3e2fede93259da42b53915c9b..3f486e80f73175ef06983ba70c42dcacf45f8328a8ea4ddfce0f0af331e85f8f 100644 (file)
@@ -639,9 +639,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                </with-param>
                        </call-template>
                </variable>
                                </with-param>
                        </call-template>
                </variable>
-               <call-template name="LesML:parse">
-                       <with-param name="lines" select="exsl:node-set($lines-fragment)/*"/>
-               </call-template>
+               <element name="div" namespace="&xhtml;">
+                       <call-template name="LesML:parse">
+                               <with-param name="lines" select="exsl:node-set($lines-fragment)/*"/>
+                       </call-template>
+               </element>
        </template>
        <template match="html:blockquote" mode="LesML:finalize-tree">
                <if test="not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:blockquote)]">
        </template>
        <template match="html:blockquote" mode="LesML:finalize-tree">
                <if test="not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:blockquote)]">
This page took 0.066493 seconds and 4 git commands to generate.