diff options
author | simon <simon@FreeBSD.org> | 2004-09-04 20:40:15 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2004-09-04 20:40:15 +0000 |
commit | 5d57a6cf97769f0bd353463de50727cf68d04c87 (patch) | |
tree | 8a442f9060b57d8ad21f33d0cf486ccccfc55032 /release | |
parent | c574bed8ef667add014cae364c10fb236da863ee (diff) | |
download | FreeBSD-src-5d57a6cf97769f0bd353463de50727cf68d04c87.zip FreeBSD-src-5d57a6cf97769f0bd353463de50727cf68d04c87.tar.gz |
Make sure ampersand is encoded as & since jade seems to be confused
when it is encoded as & inside an entity.
MFC after: 3 days
Diffstat (limited to 'release')
-rw-r--r-- | release/doc/share/misc/man2hwnotes.pl | 3 |
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 & since jade seems to + # be confused when it is encoded as & inside an entity. + $l =~ s/&/&/g; } return (wantarray) ? @lines : join "", @lines; } |