]> granicus.if.org Git - docbook-dsssl/commitdiff
Respect make.clean.html in step/title
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 28 Dec 2016 17:00:00 +0000 (12:00 -0500)
committerbobstayton <bobs@sagehill.net>
Thu, 7 Jun 2018 18:15:42 +0000 (11:15 -0700)
Elsewhere, make.clean.html wraps content in a <div> or <span> rather
than using <b> directly.  But this was not done for step/title, so add
that.

xsl/epub3/docbook-epub.css.xml
xsl/html/docbook.css.xml
xsl/html/lists.xsl
xsl/xhtml5/docbook.css.xml

index 9f28011cd4d6ebe51c01c8b428554e6861df0eb1..be966b10703bf32ca71997354e5ba5c96ed0643f 100644 (file)
@@ -94,6 +94,16 @@ div.sidebar-title {
 /* end of styles in formal.xsl */
 /********************************/
 
+/********************************/
+/* start of styles in lists.xsl */
+
+.step-title {
+  font-weight: bold;
+}
+
+/* end of styles in lists.xsl */
+/********************************/
+
 /********************************/
 /* start of styles in verbatim.xsl */
 
index f1509bfd8ac75e7441ec1646689cba3b77889085..444101b1d32b46ea4d27020d06148f316c3ef1e7 100644 (file)
@@ -81,6 +81,16 @@ div.sidebar-title {
 /* end of styles in formal.xsl */
 /********************************/
 
+/********************************/
+/* start of styles in lists.xsl */
+
+.step-title {
+  font-weight: bold;
+}
+
+/* end of styles in lists.xsl */
+/********************************/
+
 /********************************/
 /* start of styles in verbatim.xsl */
 
index 4ab83f346db69cb06c6cafc63328e227bf52d44c..d5e67e0e99e15268ae14b61e01f5600c2c46468e 100644 (file)
 <xsl:template match="d:step/d:title">
   <p>
     <xsl:call-template name="common.html.attributes"/>
-    <b>
-      <xsl:apply-templates/>
-    </b>
+    <xsl:choose>
+      <xsl:when test="$make.clean.html != 0">
+       <span class="step-title">
+         <xsl:apply-templates/>
+       </span>
+      </xsl:when>
+      <xsl:otherwise>
+       <b>
+         <xsl:apply-templates/>
+       </b>
+      </xsl:otherwise>
+    </xsl:choose>
   </p>
 </xsl:template>
 
index 9587979e406b7ffc2724f3792b3e407110f40669..3bf1b9a8ae72e0cf1c66e50ea5e963477964fb44 100644 (file)
@@ -81,6 +81,16 @@ div.sidebar-title {
 /* end of styles in formal.xsl */
 /********************************/
 
+/********************************/
+/* start of styles in lists.xsl */
+
+.step-title {
+  font-weight: bold;
+}
+
+/* end of styles in lists.xsl */
+/********************************/
+
 /********************************/
 /* start of styles in verbatim.xsl */