better censor mark styling

This commit is contained in:
skyanth
2019-04-10 13:26:51 +02:00
parent 20da82d7e4
commit 0d7257439a
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,9 @@
<xsl:choose>
<xsl:when
test="img | generate_piechart | p | div | table | section | ol | ul | pre">
<fo:block xsl:use-attribute-sets="censoredblock">[ CENSORED ]</fo:block>
<fo:block xsl:use-attribute-sets="censoredblock">
<xsl:call-template name="checkIfLast"/>
<xsl:text>[ CENSORED ]</xsl:text></fo:block>
</xsl:when>
<xsl:otherwise>
<fo:inline xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:inline>

View File

@@ -63,9 +63,7 @@
<xsl:attribute name="background-color">black</xsl:attribute>
<xsl:attribute name="color"><xsl:value-of select="$color_moderate"/></xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="censoredblock" use-attribute-sets="censoredtext">
<xsl:attribute name="padding">5mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="censoredblock" use-attribute-sets="censoredtext"/>
<xsl:attribute-set name="censoredtext">
<xsl:attribute name="background-color">black</xsl:attribute>
<xsl:attribute name="color">white</xsl:attribute>