diff options
author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2004-09-04 20:40:15 +0000 |
---|---|---|
committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2004-09-04 20:40:15 +0000 |
commit | 6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659 (patch) | |
tree | 8a442f9060b57d8ad21f33d0cf486ccccfc55032 /release/doc/share | |
parent | d92f8bed065f232e225e199adf231f3a1cdb47e3 (diff) | |
download | src-6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659.tar.gz src-6b7e211c1a9a3c89cb9ee80db9d47b7dbdf12659.zip |
Make sure ampersand is encoded as & since jade seems to be confused
when it is encoded as & 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.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 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 & since jade seems to + # be confused when it is encoded as & inside an entity. + $l =~ s/&/&/g; } return (wantarray) ? @lines : join "", @lines; } |