Commits

Shlomi Fish  committed b4c0295

Fixed the titles of the chapters in the Modern Perl page.

  • Participants
  • Parent commits bf8c7a0

Comments (0)

Files changed (1)

File src/tutorials/modern-perl/index.html.wml

         my $dom = XML::LibXML->load_html(
             location => "./tutorials/modern-perl/$chapter_xhtml_fn",
         );
-        my $title = $dom->findvalue('//h2');
+        my $title = $dom->findnodes('//h2')->[0]->textContent();
 
         printf qq{<li><b>Chapter %d</b> (<a href="%s">HTML</a> , <a href="pdf/%s.pdf">PDF</a>) - %s.</li>\n},
             ($idx, $chapter_xhtml_fn, $chapter_frag, CGI::escapeHTML($title))