From 3582c773f927c3549937a8f8495fbd85c18afd44 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sun, 12 Sep 2004 22:23:24 +0000 Subject: Bug 225854 - only print "Steps to reproduce" when the user has entered some. Patch by buti@gmx.at; r=gerv. --- template/en/default/bug/create/comment-guided.txt.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template/en/default/bug/create/comment-guided.txt.tmpl b/template/en/default/bug/create/comment-guided.txt.tmpl index c66a550e1..19d17a467 100644 --- a/template/en/default/bug/create/comment-guided.txt.tmpl +++ b/template/en/default/bug/create/comment-guided.txt.tmpl @@ -31,11 +31,12 @@ Build Identifier: [%+ form.buildid %] [%+ IF form.reproducible != "Choose one..." -%] Reproducible: [%+ form.reproducible %] -[% END -%] +[% END %] -[%# I can't make TT check for "1.\n2.\n3." so this is not conditional. -%] +[% IF !(form.reproduce_steps.match('^1\.\s+2\.\s+3\.\s+$') || form.reproduce_steps.match('^\s+$')) %] Steps to Reproduce: [%+ form.reproduce_steps %] +[% END %] [% IF form.actual_results -%] Actual Results: -- cgit v1.2.3-24-g4f1b