remove debug prints

This commit is contained in:
Tomas Groth 2016-01-23 13:38:08 +01:00
parent f61ac941d0
commit fb04813088

View File

@ -548,15 +548,11 @@ def get_start_tags(raw_text):
raw_tags = []
html_tags = []
for tag in FormattingTags.get_html_tags():
print('looking at tag...')
if tag['start tag'] == '{br}':
continue
if raw_text.count(tag['start tag']) != raw_text.count(tag['end tag']):
print('should append')
raw_tags.append((raw_text.find(tag['start tag']), tag['start tag'], tag['end tag']))
html_tags.append((raw_text.find(tag['start tag']), tag['start html']))
print(raw_tags)
print(html_tags)
# Sort the lists, so that the tags which were opened first on the first slide (the text we are checking) will be
# opened first on the next slide as well.
raw_tags.sort(key=lambda tag: tag[0])