We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ae7b90 commit 61300a9Copy full SHA for 61300a9
1 file changed
ietf/utils/draft.py
@@ -575,11 +575,12 @@ def get_authors(self):
575
def get_title(self):
576
if self._title:
577
return self._title
578
- title_re = re.compile('(.+\n){1,3}(\s+<?draft-\S+\s*\n)')
+ title_re = re.compile('(?:\n\s*\n\s*)((.+\n){1,3})(\s+<?draft-\S+\s*\n)\s*\n')
579
match = title_re.search(self.pages[0])
580
if match:
581
title = match.group(1)
582
title = title.strip()
583
+ title = re.sub('\s*\n\s*', ' ', title)
584
self._title = title
585
586
# unusual title extract
0 commit comments