From 34c7ee9975bbb8797c6dac719f2c26d9f2575f50 Mon Sep 17 00:00:00 2001 From: Roger Labbe Date: Mon, 1 Sep 2014 21:20:38 -0700 Subject: [PATCH] fixes for TOC link for PDF generation --- merge_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merge_book.py b/merge_book.py index 345bbca..f0d78bf 100644 --- a/merge_book.py +++ b/merge_book.py @@ -19,7 +19,7 @@ def remove_links(nb): c = node['cells'] for i in range (len(c)): if 'source' in c[i].keys(): - if c[i]['source'][0:15] == 'http://nbviewer': + if c[i]['source'][0:19] == '[Table of Contents]': del c[i] return