Skip to content

Commit

Permalink
Merge pull request #118 from Edirom/issue-109
Browse files Browse the repository at this point in the history
tried to insert empty lines into textareas in frontend and save - everything seems to be working fine now
  • Loading branch information
daniel-jettka authored Sep 29, 2022
2 parents 4e1decf + 1d51f50 commit e1d8bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/xsl/filter_put.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
<xsl:template name="replace_nodes">
<xsl:param name="text"/>
<!-- Wrap contents in a temporary <div> root element and parse XML -->
<xsl:variable name="fragment">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;<xsl:value-of select="replace(replace($text, '&amp;(\s)', '&amp;amp;$1'), '&amp;nbsp;', '&#xa0;')"/>&lt;/div&gt;</xsl:variable>
<xsl:variable name="fragment">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;<xsl:value-of select="replace(replace(replace($text, '&amp;(\s)', '&amp;amp;$1'), '&amp;nbsp;', ' '), '&lt;br&gt;', '&lt;br/&gt;')"/>&lt;/div&gt;</xsl:variable>
<xsl:for-each select="parse-xml($fragment)/h:div">
<xsl:apply-templates/>
</xsl:for-each>
Expand Down

0 comments on commit e1d8bb2

Please sign in to comment.