Closed Bug 270589 Opened 20 years ago Closed 20 years ago

t/008filter.t should accept empty template directives

Categories

(Bugzilla :: Testing Suite, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: Wurblzap, Assigned: Wurblzap)

Details

Attachments

(1 file)

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.
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: zach → wurblzap
Status: NEW → ASSIGNED
Attachment #166323 - Flags: review?
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+
This looks good to me.
Btw, [%%] works, too.
Summary: t/008filter.t should accept [%-%] → t/008filter.t should accept empty template directives
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)
Flags: approval?
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 2.20
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
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: