aboutsummaryrefslogtreecommitdiff
path: root/release/doc/share
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2004-09-04 20:40:15 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2004-09-04 20:40:15 +0000
commit6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659 (patch)
tree8a442f9060b57d8ad21f33d0cf486ccccfc55032 /release/doc/share
parentd92f8bed065f232e225e199adf231f3a1cdb47e3 (diff)
downloadsrc-6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659.tar.gz
src-6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659.zip
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
Notes
Notes: svn path=/head/; revision=134770
Diffstat (limited to 'release/doc/share')
-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 a34a70314eb4..809910e66ff2 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;
}