Closed Bug 288131 Opened 20 years ago Closed 20 years ago

PatchViewer adds extra empty lines in modified parts of patches

Categories

(Bugzilla :: Attachments & Requests, defect)

2.19.2
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

When viewing patches using PatchViewer (diff mode), added or removed parts are
displayed correctly, but modified ones are not: extra empty lines are added:

http://landfill.mozilla.org/bugzilla-tip/attachment.cgi?id=314&action=diff

I cannot reproduce on 2.18+:

http://landfill.bugzilla.org/bugzilla-2.18-branch/attachment.cgi?id=134&action=diff
Flags: blocking2.20?
Target Milestone: --- → Bugzilla 2.20
If I had to guess, I'd say that it has something to do with not stripping \r, or
something...? I'd have to investigate, though, to really find out what's going on.
Keywords: regression
This appeared to regress between 7 March and 8 March -- a checkout from 07 Mar
behaves correctly, but a checkout from 08 Mar demonstrates this problem.


cvs -q update -d -p -D "07 Mar 2005" webtools/bugzilla -- Fine
cvs -q update -d -p -D "08 Mar 2005" webtools/bugzilla -- Has this issue
Regression caused by bug 162194 - removing the patch works, adding it doesn't...
not quite what I was expecting when I tracked this down!
Attached patch simple fix, v1Splinter Review
Attachment #178922 - Flags: review?(bugzilla)
Comment on attachment 178922 [details] [diff] [review]
simple fix, v1

r=glob
Attachment #178922 - Flags: review?(bugzilla) → review+
Flags: approval?
Regression found by me; culprit found by Colin; original fix found by glob;
additional tests made by wicked. That's what I call a great team work! :)
Assignee: attach-and-request → LpSolit
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Flags: approval+
Checking in template/en/default/attachment/diff-header.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/diff-header.html.tmpl,v
 <--  diff-header.html.tmpl
new revision: 1.9; previous revision: 1.8
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: