Skip to content

Commit

Permalink
JBEHAVE-705: decorated txt reports get broken if the text contains <s…
Browse files Browse the repository at this point in the history
…cript></script> tags
  • Loading branch information
alexlehm committed Jan 13, 2012
1 parent 1e70b23 commit 07af4be
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
${body}
<#else>
<#assign brushFormat = format> <#if format == "stats"><#assign brushFormat = "plain"> </#if>
<script type="syntaxhighlighter" class="brush: ${brushFormat}"><![CDATA[
<script type="syntaxhighlighter" class="brush: ${brushFormat}"><#if format != "txt" || !body.contains("</script>")><![CDATA[
${body}
]]></script>
]]><#else>
${body?html}
</#if></script>
</#if>
</body>
<#include "./sh.ftl">
Expand Down

0 comments on commit 07af4be

Please sign in to comment.