HTML tags are still visible after changing changelog.vm

Todor Kostadinov February 26, 2013

Hi I tried the suggested resolution on http://jiraeditor.com/docs/

in order to get rid of the HTML tags in emails regarding changes in issues.

But when the lines:

#set ($oldText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($oldstringKey), $i18n, “”))
#set ($newText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($newstringKey), $i18n, “”))
$!diffutils.diff($oldText, “background-color:${auiErrorBackgroundColour};text-decoration:line-through;”, $newText, “background-color:${auiSuccessBackgroundColour};”)

are replaced with:

#if ($changeitem.getString(“field”) == “description” || $changeitem.getString(“field”) == “Comment”)
#if ($changeitem.getString($newstringKey)) $changeitem.getString($newstringKey)
#else Empty
#end
#else
#set ($oldText = “”) #set ($newText = “”)
#set ($oldText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($oldstringKey), $i18n, “”))
#set ($newText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($newstringKey), $i18n, “”))
$!diffutils.diff($oldText, “background-color:${auiErrorBackgroundColour};text-decoration:line-through;”, $newText, “background-color:${auiSuccessBackgroundColour};”)
#end

There are a lot of errors in the received emails.

Any ideas?

2 answers

1 accepted

0 votes
Answer accepted
Todor Kostadinov February 26, 2013

"" “”

This was the problem, the different between symbols - different quotation marks. :)

0 votes
Kirill Bobrovskikh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2013

Hi Todor,

We have fixed the quotes. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events