fixes for TOC link for PDF generation

This commit is contained in:
Roger Labbe 2014-09-01 21:20:38 -07:00
parent 099b5ed94c
commit 34c7ee9975

View File

@ -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