Closed
Bug 270589
Opened 20 years ago
Closed 20 years ago
t/008filter.t should accept empty template directives
Categories
(Bugzilla :: Testing Suite, defect)
Bugzilla
Testing Suite
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: Wurblzap, Assigned: Wurblzap)
Details
Attachments
(1 file)
|
1.17 KB,
patch
|
justdave
:
review+
myk
:
review+
|
Details | Diff | Splinter Review |
If you put [%-%] at the beginning of a line in a template, the previous line continues without a line break with the following text. This is useful to split up otherwise long source lines. Unfortunately, t/008filter.t does not like that, and complains. It does like [%-#%], though, so there is a workaround, but I think it would be nice to be allowed to use the more elegant notation.
| Assignee | ||
Comment 1•20 years ago
|
||
This is motivated by bug 262372 and the comment in filterexceptions.pl (http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/template/en/default/filterexceptions.pl#139) about empty directives.
| Assignee | ||
Updated•20 years ago
|
Assignee: zach → wurblzap
Status: NEW → ASSIGNED
| Assignee | ||
Updated•20 years ago
|
Attachment #166323 -
Flags: review?
Comment 2•20 years ago
|
||
Comment on attachment 166323 [details] [diff] [review] Patch allowing empty directives Makes sense to me. I'd like a second review to make sure I'm not out of my mind though. :)
Attachment #166323 -
Flags: review?(myk)
Attachment #166323 -
Flags: review?
Attachment #166323 -
Flags: review+
Comment 3•20 years ago
|
||
This looks good to me.
| Assignee | ||
Comment 4•20 years ago
|
||
Btw, [%%] works, too.
Summary: t/008filter.t should accept [%-%] → t/008filter.t should accept empty template directives
Comment 5•20 years ago
|
||
Comment on attachment 166323 [details] [diff] [review] Patch allowing empty directives I'm not that excited about this use of empty directives, but they shouldn't break the filtering code. r=myk
Attachment #166323 -
Flags: review?(myk)
Updated•20 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 2.20
Comment 6•20 years ago
|
||
Checking in t/008filter.t; /cvsroot/mozilla/webtools/bugzilla/t/008filter.t,v <-- 008filter.t new revision: 1.16; previous revision: 1.15 done Checking in template/en/default/filterexceptions.pl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl,v <-- filterexceptions.pl new revision: 1.26; previous revision: 1.25 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•