India Seminar
https://github.com/kovidgoyal/calibr...agazine.recipe
import re
and add these lines (from 42) to skip url if tag to string is empty. At present it returns without titles in ToC
Quote:
title = self.tag_to_string(a)
title = re.sub('\s+',' ', title)
empty = ' '
if title is empty:
url = ''
|