Trim Whitespace around the Title
This commit is contained in:
parent
369707841e
commit
be2cc2d56b
1 changed files with 2 additions and 2 deletions
|
@ -196,8 +196,8 @@ def events(scheduleUrl, titlemap={}):
|
||||||
# yield a tupel with the event-id, event-title and person-names
|
# yield a tupel with the event-id, event-title and person-names
|
||||||
yield {
|
yield {
|
||||||
'id': int(event.get('id')),
|
'id': int(event.get('id')),
|
||||||
'title': titlemap[id] if id in titlemap else event.find('title').text,
|
'title': titlemap[id] if id in titlemap else event.find('title').text.strip(),
|
||||||
'subtitle': event.find('subtitle').text if event.find('subtitle') is not None else '',
|
'subtitle': event.find('subtitle').text.strip() if event.find('subtitle') is not None else '',
|
||||||
'persons': personnames,
|
'persons': personnames,
|
||||||
'personnames': ', '.join(personnames)
|
'personnames': ', '.join(personnames)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue