Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
82c72145
Commit
82c72145
authored
Jan 20, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 470057: Collapse and wrap text messages and text errors
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
8daa29c6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
Template.pm
Bugzilla/Template.pm
+4
-0
messages.html.tmpl
template/en/default/admin/sanitycheck/messages.html.tmpl
+7
-2
sanitycheck.txt.tmpl
template/en/default/email/sanitycheck.txt.tmpl
+1
-1
No files found.
Bugzilla/Template.pm
View file @
82c72145
...
...
@@ -698,6 +698,10 @@ sub create {
$var
=~
s/\>/>/g
;
$var
=~
s/\"/\"/g
;
$var
=~
s/\&/\&/g
;
# Now remove extra whitespace, and wrap it to 72 characters.
my
$collapse_filter
=
$
Template::Filters::
FILTERS
->
{
collapse
};
$var
=
$collapse_filter
->
(
$var
);
$var
=
wrap_comment
(
$var
,
72
);
return
$var
;
},
...
...
template/en/default/admin/sanitycheck/messages.html.tmpl
View file @
82c72145
...
...
@@ -310,8 +310,13 @@
[% END %]
[% END %]
[% san_message FILTER html %]
[% USE Bugzilla %]
[% IF Bugzilla.usage_mode == constants.USAGE_MODE_CMDLINE %]
[% san_message FILTER none %]
[% ELSE %]
[%# Avoid the txt filter in message.txt.tmpl. %]
[% san_message FILTER html %]
[% END %]
[% BLOCK bug_list %]
[% FOREACH bug_id = badbugs %]
...
...
template/en/default/email/sanitycheck.txt.tmpl
View file @
82c72145
...
...
@@ -33,4 +33,4 @@ Some errors have been found.
No errors have been found.
[% END %]
[% output
FILTER txt
%]
[% output %]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment