summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06e17aa)
It looks like not all multi-line Subject headers are split with \n\t.
This is causing an exception with the re.findall() calll in
stgit.commands.common.parse_mail() function. Use re.sub() instead of
replace().
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
authname = authemail = None
# '\n\t' can be found on multi-line headers
authname = authemail = None
# '\n\t' can be found on multi-line headers
- descr = __decode_header(msg['subject']).replace('\n\t', ' ')
+ descr = __decode_header(msg['subject'])
+ descr = re.sub('\n[ \t]*', ' ', descr)
authdate = msg['date']
# remove the '[*PATCH*]' expression in the subject
authdate = msg['date']
# remove the '[*PATCH*]' expression in the subject