forked from openlp/openlp
remove debug prints
This commit is contained in:
parent
f61ac941d0
commit
fb04813088
@ -548,15 +548,11 @@ def get_start_tags(raw_text):
|
|||||||
raw_tags = []
|
raw_tags = []
|
||||||
html_tags = []
|
html_tags = []
|
||||||
for tag in FormattingTags.get_html_tags():
|
for tag in FormattingTags.get_html_tags():
|
||||||
print('looking at tag...')
|
|
||||||
if tag['start tag'] == '{br}':
|
if tag['start tag'] == '{br}':
|
||||||
continue
|
continue
|
||||||
if raw_text.count(tag['start tag']) != raw_text.count(tag['end tag']):
|
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']))
|
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']))
|
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
|
# 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.
|
# opened first on the next slide as well.
|
||||||
raw_tags.sort(key=lambda tag: tag[0])
|
raw_tags.sort(key=lambda tag: tag[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user