Skip to content

Commit

Permalink
Fix #69 by using 'span' and CSS instead of 'i' for foreignphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Aug 22, 2020
1 parent 935ff69 commit b75e309
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/main/web/css/docbook.css
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,10 @@ li[db-mark='box'] {

/* ============================================================ */

.foreignphrase {
font-style: italic;
}

.bold {
font-weight: bold;
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/xslt/modules/inlines.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@
</xsl:template>

<xsl:template match="db:foreignphrase">
<xsl:call-template name="t:inline">
<xsl:with-param name="namemap" select="'i'"/>
</xsl:call-template>
<xsl:call-template name="t:inline"/>
</xsl:template>

<xsl:template match="db:function">
Expand Down
2 changes: 1 addition & 1 deletion src/test/generators/inlines.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'exceptionname': 'code',
'filename': 'code',
'firstterm': 'span',
'foreignphrase': 'i',
'foreignphrase': 'span',
'function': 'code',
'glossterm': 'span',
'guibutton': 'span',
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/expected/inlines.001.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</p></li><li><p>
<em id="emphasis">emphasis</em>
</p></li><li><p>
<i id="foreignphrase" class="foreignphrase">foreignphrase</i>
<span id="foreignphrase" class="foreignphrase">foreignphrase</span>
</p></li><li><p>
<span id="phrase" class="phrase">phrase</span>
</p></li><li><p>X<sub>subscript</sub>
Expand Down

0 comments on commit b75e309

Please sign in to comment.