From ffc2bd15a2655130d560de4e9c39518a2fce4015 Mon Sep 17 00:00:00 2001 From: Robert Klep Date: Mon, 20 Oct 2014 12:09:27 +0200 Subject: [PATCH] Fixed another issue with Yosemite attribution fix --- quotefix/attribution.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quotefix/attribution.py b/quotefix/attribution.py index cefa466..f30dec6 100644 --- a/quotefix/attribution.py +++ b/quotefix/attribution.py @@ -176,7 +176,10 @@ def customize_attribution(cls, original, editor, dom, reply, inreplyto, template import platform osversion = platform.mac_ver()[0] if osversion.startswith('10.10'): - html = re.sub(r'(?i)()(.*?)()', r'\2\3\1', html, count = 1) + # move
one level down + html = re.sub(r'(?i)()(.*?)()', r'\2\1', html, count = 1) + # remove trailing whitespace after
+ html = re.sub(r'(?i)()()+', r'\1', html, count = 1) # Special case: Mail doesn't include an attribution for Send Again messages, # so we'll just add a customized attribution right after the element.