chiark / gitweb /
Line-wrap articles in the moderation screen
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Wed, 2 Apr 2014 21:00:53 +0000 (22:00 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Wed, 2 Apr 2014 21:00:53 +0000 (22:00 +0100)
The ULM mods asked for the <pre> tags in the single-article moderation
screen to be modified to line-wrap long lines in posts (e.g. from
google groups).

webstump/scripts/html_output.pl

index 7134ba787cf8e3fc93f1d4406f637b308937c111..bf6707d3ca28ede815bb767103d661c257996d3b 100644 (file)
@@ -211,7 +211,7 @@ sub html_moderate_article {
 
       print "<HR>\n" if &print_article_warning( $file );
 
-      print "<PRE>\n";
+      print "<pre style=\"white-space: pre-wrap\">\n";
       my $filename;
       my $inhead= 1;
       while( $filename = <TEXT_FILES> ) {