From 4f6724b0f86ccffa091ca33c04e237b9dd5d4c4a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 23 Oct 2013 15:25:27 +0800 Subject: Bug 895687: add UserStory extension --- Bugzilla/Template.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Bugzilla/Template.pm') 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
+ html_br => sub { + my ($var) = @_; + $var = html_quote($var); + $var =~ s/\n/
/g; + return $var; + }, + # Prevents line break on hyphens and whitespaces. no_break => sub { my ($var) = @_; -- cgit v1.2.3-24-g4f1b