diff options
author | Byron Jones <bjones@mozilla.com> | 2013-10-23 09:25:27 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-10-23 09:25:27 +0200 |
commit | 4f6724b0f86ccffa091ca33c04e237b9dd5d4c4a (patch) | |
tree | 01bc416498ea53d03d569a3b85bb762bbe1c4e3c /Bugzilla/Template.pm | |
parent | f427f277bf5d4e5f54948ef9a89634961d74298c (diff) | |
download | bugzilla-4f6724b0f86ccffa091ca33c04e237b9dd5d4c4a.tar.gz bugzilla-4f6724b0f86ccffa091ca33c04e237b9dd5d4c4a.tar.xz |
Bug 895687: add UserStory extension
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 434e49da5..b529caf89 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -682,6 +682,14 @@ sub create { return $var; }, + # preserve newline by converting them to <br> + html_br => sub { + my ($var) = @_; + $var = html_quote($var); + $var =~ s/\n/<br>/g; + return $var; + }, + # Prevents line break on hyphens and whitespaces. no_break => sub { my ($var) = @_; |