User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko) Build Identifier: the "steps to reproduce" (reproduce_steps) field in create-guided.html.tmpl initially contains "1. 2. 3.", each on a line. even if the user leaves the field untouched, the numbers will be included in the bug description. the default comment-guided.txt.tmpl which merges the fields states: [%# I can't make TT check for "1.\n2.\n3." so this is not conditional. -%] i found out it can be don using re's: [% IF !(form.reproduce_steps.match('^1\.\s+2\.\s+3\.\s+$') || form.reproduce_steps.match('^\s+$')) -%] Steps to Reproduce: [%+ form.reproduce_steps %] [% END %] the second match() (after ||) is optional, it could also be changed to normal checking for an empty string. Reproducible: Didn't try Steps to Reproduce:
ooooooh. :) Do you know how to make a patch for this?
Created attachment 156331 [details] [diff] [review] patch (checking for "1. 2. 3." in comment-guided.txt.tmpl) this one has 2 regexp's, one that checks for "1. 2. 3." and anotherone that checks for whitespace only.
Comment on attachment 156331 [details] [diff] [review] patch (checking for "1. 2. 3." in comment-guided.txt.tmpl) r=gerv. Gerv
Checked in. Thanks for fixing this - it really bugged me :-) Checking in template/en/default/bug/create/comment-guided.txt.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/comment-guided.txt.tmpl,v <-- comment-guided.txt.tmpl new revision: 1.3; previous revision: 1.2 done Gerv