[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#249805: www.debian.org: tidy reports trimming empty <dd> for security pages



Package: www.debian.org
Severity: normal
Tags: patch

Hi,

looking at
   http://people.debian.org/~alfie/tidy/fr
tidy reports some warnings about empty <dd> tags, here is a patch that
should solve this problem for security pages. The warning appears when
<moreinfo> is empty, so I added a test on this. BTW this patch also
removes the "More info:" line if there is no more info.

It's written in perl as I'm a better at perl than at wml :)


Regards


Nicolas Bertolissio

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

-- 
Index: security.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/security.wml,v
retrieving revision 1.117
diff -u -r1.117 security.wml
--- security.wml	23 Apr 2004 13:33:24 -0000	1.117
+++ security.wml	19 May 2004 10:18:21 -0000
@@ -74,8 +74,13 @@
 	</dd>
 <dt><gettext domain="security">Security database references</gettext>:</dt>
 	<dd><:= security_references("<secrefs/>") :></dd>
+<perl>
+  if ("<moreinfo/>" =~ /\S/) {
+    print "
 <dt><gettext domain="security">More information</gettext>:</dt>
 	<dd><moreinfo/></dd>
+"; }
+</perl>
 #<ifneq "{#securitybody#}" "" "
 <ifneq "<isvulnerable/>" "no" "
 <dt><gettext domain="security">Fixed in</gettext>:</dt>

Attachment: signature.asc
Description: Digital signature


Reply to: