Skip to content

Commit 43f1d5d

Browse files
committed
Improved extraction of draft title during submission. Fixed a problem where the scan for an author's email address was prematurely terminated because another author's affiliation also was part of this author's address information.
- Legacy-Id: 3445
1 parent 8c3b7de commit 43f1d5d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/utils/draft.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import sys
4141
import time
4242

43-
version = "0.21"
43+
version = "0.23"
4444
program = os.path.basename(sys.argv[0])
4545
progdir = os.path.dirname(sys.argv[0])
4646

@@ -646,7 +646,7 @@ def dotexp(s):
646646
for k in range(i+1, len(authors)):
647647
if authors[k] and authors[k].lower() in companies:
648648
authors[k] = None
649-
elif not "@" in line:
649+
elif blanklines and not "@" in line:
650650
# Break on an author name
651651
_debug( " - Break on other author name")
652652
break
@@ -698,6 +698,8 @@ def get_title(self):
698698
match = re.search('(?:\n\s*\n\s*)((.+\n){0,2}(.+\n*))(\s+<?draft-\S+\s*\n)\s*\n', self.pages[0])
699699
if not match:
700700
match = re.search('(?:\n\s*\n\s*)<?draft-\S+\s*\n*((.+\n){1,3})\s*\n', self.pages[0])
701+
if not match:
702+
match = re.search('(?:\n\s*\n\s*)((.+\n){0,2}(.+\n*))(\s*\n){2}', self.pages[0])
701703
if not match:
702704
match = re.search('(?i)(.+\n|.+\n.+\n)(\s*status of this memo\s*\n)', self.pages[0])
703705
if match:

0 commit comments

Comments
 (0)