Commit Diff
Commit:
5b01d758b6e1c615bec81c44ae1cfa4080e52d54
Date:
Thu Aug 25 10:47:18 2022
UTC
Message:
mexp: handle the body line by line
--- mexp
+++ mexp
@@ -75,17 +75,13 @@ while (<>) {
print $fh "<p>Download raw <a href='/text/$mid.txt'>body</a>.</p>";
print $fh "</header>";
- my $body = do {
- local $/ = undef;
- <$mshow>;
- };
-
print $fh "<pre>";
- print $fh san($body // "");
+ while (<$mshow>) {
+ print $text $_;
+ print $fh san($_);
+ }
print $fh "</pre>";
- print $text $body;
-
# generate the listing for the exported parts
my $part_seen = 0;
while (<$parts>) {
Omar Polo