Skip to content

Commit f1173e5

Browse files
committed
ignore URLs in TOC
1 parent bd6d9e3 commit f1173e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/pdf/GuideRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function render($files, $targetDir)
5959
$output .= '\chapter{' . $chapter['headline'] . "}\n";
6060
}
6161
foreach($chapter['content'] as $content) {
62+
// ignore URLs in TOC
63+
if (strpos($content['file'], 'http://') === 0) {
64+
continue;
65+
}
6266
if (isset($fileData[$content['file']])) {
6367
$md->labelPrefix = $content['file'] . '#';
6468
$output .= '\label{'. $content['file'] . '}';

0 commit comments

Comments
 (0)