Skip to content

Commit 8d2cc62

Browse files
committed
Fix decoding problem with   entities
This prevents   characters from failing the comparison test against the source in Git (where surely multiple space characters were used rather than non-breaking spaces).
1 parent ac47e8d commit 8d2cc62

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

verify-code-snippets.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ ($)
4444

4545
# decode encoded HTML characters (e.g., '&' -> '&')
4646
for (my $pageIndex = 0; $pageIndex < @page; $pageIndex++) {
47+
# HACK: decode '&nbsp;' -> ' ' (not 0xa0)
48+
$page[$pageIndex] =~ s/&nbsp;/ /g;
49+
4750
$page[$pageIndex] = decode_entities($page[$pageIndex]);
4851
}
4952

0 commit comments

Comments
 (0)