Remove explicit <hr> from help pages
authorJamie Cameron <jcameron@webmin.com>
Thu, 12 Jun 2008 20:39:15 +0000 (20:39 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 12 Jun 2008 20:39:15 +0000 (20:39 +0000)
help.cgi

index 30e447b..b86aaf1 100755 (executable)
--- a/help.cgi
+++ b/help.cgi
@@ -34,8 +34,12 @@ else {
        &helperror($text{'help_eheader'});
        }
 
+# replace any explicit use of <hr> with the ui-lib function
+$uihr = &ui_hr();
+$help =~ s/<hr>/$uihr/ig;
+
 # find and replace the <footer> section
-$help =~ s/<footer>/<p><hr>/i;
+$help =~ s/<footer>/<p>/i;
 
 # find and replace <include> directives
 $help =~ s/<include\s+(\S+)>/inchelp($1)/ige;