Skip to content

Commit

Permalink
Cusom align: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev committed May 8, 2019
1 parent 945b2cc commit f9aaf32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,6 @@
<xsl:when test="translate($align, $uppercase, $lowercase) = 'justify'">
<xsl:attribute name="ezxhtml:textalign">justify</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- we can not use custom values here, as it will break richtext shema
<xsl:attribute name="ezxhtml:textalign">
<xsl:value-of select="translate($align, $uppercase, $lowercase)"/>
</xsl:attribute>
-->
</xsl:otherwise>
</xsl:choose>
</xsl:template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
<para ezxhtml:textalign="right">This is a right aligned paragraph.</para>
<para ezxhtml:textalign="justify">This is a justified paragraph.</para>
<para>this is a paragraph with unsupported align attribute.</para>
<para ezxhtml:textalign="left">this is a paragraph with translated valid align attribute.</para>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
<paragraph align="right">This is a right aligned paragraph.</paragraph>
<paragraph align="justify">This is a justified paragraph.</paragraph>
<paragraph align="unsupported">This is a paragraph with unsupported align attribute.</paragraph>
<paragraph align="LEFT">this is a paragraph with translated valid align attribute.</paragraph>
</section>

0 comments on commit f9aaf32

Please sign in to comment.