Skip to content

Commit

Permalink
changed ragged environments for text alignment to commands with group…
Browse files Browse the repository at this point in the history
…ed content (in curly brackets)
  • Loading branch information
polypunkt committed Nov 22, 2022
1 parent 2e3f26e commit b2e8e79
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions conf/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,24 +134,30 @@
<template context="dbk:para[ @css:text-align='center'
or exists(key('style', @role)[@css:text-align eq 'center'])]
[not(parent::*/@css:text-align='center')]">
<rule name="centering" type="env">
<rule name="centering" type="cmd">
<xsl:text>{</xsl:text>
<xsl:next-match/>
<xsl:text>}</xsl:text>
</rule>
</template>

<template context="dbk:para[ @css:text-align='right'
or exists(key('style', @role)[@css:text-align eq 'right'])]
[not(parent::*/@css:text-align='right')]">
<rule name="raggedleft" type="env">
[not(parent::*/@css:text-align='right')]">
<rule name="raggedleft" type="cmd">
<xsl:text>{</xsl:text>
<xsl:next-match/>
</rule>
<xsl:text>}</xsl:text>
</template>

<template context="dbk:para[ @css:text-align='left'
and key('style', @role)/@css:text-align = ('center', 'right')]
[not(parent::*/@css:text-align='left')]">
<rule name="raggedright" type="env">
<rule name="raggedright" type="cmd">
<xsl:text>{</xsl:text>
<xsl:next-match/>
<xsl:text>}</xsl:text>
</rule>
</template>

Expand Down

0 comments on commit b2e8e79

Please sign in to comment.