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
f80758fc
Commit
f80758fc
authored
May 20, 2011
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 657947: Add trailing newlines after quoted reply
r=dkl, a=LpSolit
parent
b3247a81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comments.js
js/comments.js
+2
-2
No files found.
js/comments.js
View file @
f80758fc
...
...
@@ -80,7 +80,7 @@ function expand_comment(link, comment) {
function
wrapReplyText
(
text
)
{
// This is -3 to account for "\n> "
var
maxCol
=
BUGZILLA
.
constant
.
COMMENT_COLS
-
3
;
var
text_lines
=
text
.
split
(
"
\
n"
);
var
text_lines
=
text
.
replace
(
/
[\s\n]
+$/
,
''
).
split
(
"
\
n"
);
var
wrapped_lines
=
new
Array
();
for
(
var
i
=
0
;
i
<
text_lines
.
length
;
i
++
)
{
...
...
@@ -121,7 +121,7 @@ function wrapReplyText(text) {
replace_lines
.
push
(
paragraph
);
wrapped_lines
.
push
(
"> "
+
replace_lines
.
join
(
"
\
n> "
));
}
return
wrapped_lines
.
join
(
"
\
n"
);
return
wrapped_lines
.
join
(
"
\
n"
)
+
"
\
n
\
n"
;
}
/* This way, we are sure that browsers which do not support JS
...
...
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