Skip to content

Commit

Permalink
Improve rendering of NOTES sections in F&O
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Jan 30, 2025
1 parent ee01000 commit 26d5468
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions specifications/css/qtspecs.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ div.issue,
div.note,
div.notice { margin-left: 2em; }

dd div.note { margin-left: 0; }

div.issue
p.title { margin-left: -2em; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@
<label>Notes</label>
<def>
<xsl:copy-of select="$fspec/fos:notes/(@diff, @at)"/>
<xsl:apply-templates select="$fspec/fos:notes/node()" mode="make-note"/>
<!--<xsl:apply-templates select="$fspec/fos:notes/node()" mode="make-note"/>-->
<note>
<xsl:apply-templates select="$fspec/fos:notes/node()"/>
</note>
</def>
</gitem>
</xsl:if>
Expand Down
7 changes: 7 additions & 0 deletions style/xmlspec-2016.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,13 @@
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="gitem[label='Notes']/def/note">
<!--Avoid the extra "Note" label in the Notes section of the F&O spec -->
<div class="note">
<xsl:apply-templates/>
</div>
</xsl:template>

<!-- notice: a front-matter advisory about the spec's status -->
<!-- make sure people notice it -->
Expand Down

0 comments on commit 26d5468

Please sign in to comment.