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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
c9806c35
Commit
c9806c35
authored
Aug 19, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 73330: Remove extra newlines in bugmail
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
92f86cba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
BugMail.pm
Bugzilla/BugMail.pm
+3
-1
newchangedmail.txt.tmpl
template/en/default/email/newchangedmail.txt.tmpl
+2
-0
No files found.
Bugzilla/BugMail.pm
View file @
c9806c35
...
...
@@ -352,7 +352,7 @@ sub Send {
if
(
$deptext
)
{
my
$diffpart
=
{};
$diffpart
->
{
'text'
}
=
"\n"
.
trim
(
"\n\n"
.
$deptext
);
$diffpart
->
{
'text'
}
=
"\n"
.
trim
(
$deptext
);
push
(
@diffparts
,
$diffpart
);
}
}
...
...
@@ -595,6 +595,8 @@ sub sendMail {
}
my
$diffs
=
$difftext
;
# Remove extra newlines.
$diffs
=~
s/^\n+//s
;
$diffs
=~
s/\n+$//s
;
if
(
$isnew
)
{
my
$head
=
""
;
foreach
my
$f
(
@headerlist
)
{
...
...
template/en/default/email/newchangedmail.txt.tmpl
View file @
c9806c35
...
...
@@ -41,8 +41,10 @@ X-Bugzilla-Changed-Fields: [% changedfields %]
[%+ threadingmarker %]
[%+ urlbase %]show_bug.cgi?id=[% bugid %]
[%- IF diffs %]
[%+ diffs %]
[% END -%]
[% FOREACH comment = new_comments %]
--- Comment #[% comment.count %] from [% comment.author.identity %] [%+ comment.time FILTER time %] ---
...
...
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