Permalink
Browse files

fixed entity rendering in TOC for epub

  • Loading branch information...
barbie committed Mar 23, 2011
1 parent 32a6f3a commit d19e3b78a5a974a6587c65375c05d536c9b9f11e
Showing with 3 additions and 2 deletions.
  1. +3 −2 build/tools/build_epub.pl
@@ -12,6 +12,7 @@
use Pod::PseudoPod::HTML;
use File::Spec::Functions qw( catfile catdir splitpath );
use EBook::EPUB;
+use HTML::Entities;
# P::PP::H uses Text::Wrap which breaks HTML tags
local *Text::Wrap::wrap;
@@ -317,8 +318,8 @@ sub set_table_of_contents
{
my $heading_level = $heading->[0];
- my $section = $heading->[1];
- my $label = $heading->[2];
+ my $section = decode_entities($heading->[1]);
+ my $label = decode_entities($heading->[2]);
my $content = 'text/' . $heading->[3] . '.xhtml';

0 comments on commit d19e3b7

Please sign in to comment.