Skip to content

Commit d02aa83

Browse files
committed
bugfix for 'format-mixed-content'
The format-mixed-content param is represent here as 'indent-mc', there was a logic error in the declaration for the 'is-mixed' variable so logic was moved to the direct xls:when instruction instead that tests 'is-mixed' to simplify the expression
1 parent 1fd828e commit d02aa83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/xsl/xslt-formatting-functions.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335

336336

337337
<xsl:variable name="is-mixed" as="xs:boolean"
338-
select="$mixed-level gt 0 and not($ignore-mc)
338+
select="$mixed-level gt 0
339339
or (
340340
$class eq 'txt' and $nextClass = ('es','esx') and string-length($span) gt 0
341341
)"/>
@@ -367,7 +367,7 @@
367367
<xsl:choose>
368368
<!-- if next tag is open tag (es/esx) and it is preceded by text-content
369369
don't add a new line, eg <p>my name<p> -->
370-
<xsl:when test="$is-mixed">
370+
<xsl:when test="$is-mixed and not($ignore-mc)">
371371
</xsl:when>
372372
<!-- add new line after text-content if:
373373
1. next tag is not a close tag

0 commit comments

Comments
 (0)