summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2004-09-04 20:40:15 +0000
committersimon <simon@FreeBSD.org>2004-09-04 20:40:15 +0000
commit5d57a6cf97769f0bd353463de50727cf68d04c87 (patch)
tree8a442f9060b57d8ad21f33d0cf486ccccfc55032 /release
parentc574bed8ef667add014cae364c10fb236da863ee (diff)
downloadFreeBSD-src-5d57a6cf97769f0bd353463de50727cf68d04c87.zip
FreeBSD-src-5d57a6cf97769f0bd353463de50727cf68d04c87.tar.gz
Make sure ampersand is encoded as &amp; since jade seems to be confused
when it is encoded as &#38; inside an entity. MFC after: 3 days
Diffstat (limited to 'release')
-rw-r--r--release/doc/share/misc/man2hwnotes.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/doc/share/misc/man2hwnotes.pl b/release/doc/share/misc/man2hwnotes.pl
index a34a703..809910e 100644
--- a/release/doc/share/misc/man2hwnotes.pl
+++ b/release/doc/share/misc/man2hwnotes.pl
@@ -131,6 +131,9 @@ sub normalize (@) {
foreach my $l (@lines) {
$l =~ s/\\&//g;
$l =~ s:([\x21-\x2f\x5b-\x60\x7b-\x7f]):sprintf("&\#\%d;", ord($1)):eg;
+ # Make sure ampersand is encoded as &amp; since jade seems to
+ # be confused when it is encoded as &#38; inside an entity.
+ $l =~ s/&#38;/&amp;/g;
}
return (wantarray) ? @lines : join "", @lines;
}
OpenPOWER on IntegriCloud