Skip to content

Commit

Permalink
prevent generation of \centering and \raggedleft if orientation is de…
Browse files Browse the repository at this point in the history
…fines in style but overwritten on para itself, https://redmine.le-tex.de/issues/16096
  • Loading branch information
polypunkt committed Feb 14, 2024
1 parent bbe5c04 commit e06ea65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
<template context="dbk:para[ @css:text-align='center'
or exists(key('style', @role)[@css:text-align eq 'center'])]
[not(parent::*/@css:text-align='center')]
[not(@css:text-align = ('left', 'right', 'justify'))(:if centering is in style but overwritten:)]
[not(parent::dbk:entry or parent::*:th or parent::*:td)]">
<xsl:text>{\centering </xsl:text>
<xsl:next-match/>
Expand All @@ -295,6 +296,7 @@
<template context="dbk:para[ @css:text-align='right'
or exists(key('style', @role)[@css:text-align eq 'right'])]
[not(parent::*/@css:text-align='right')]
[not(@css:text-align = ('left', 'center', 'justify'))]
[not(parent::dbk:entry or parent::*:th or parent::*:td)]">
<xsl:text>{\raggedleft </xsl:text>
<xsl:next-match/>
Expand Down

0 comments on commit e06ea65

Please sign in to comment.