Skip to content

Commit

Permalink
Fixed issue with Yosemite attribution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertklep committed Oct 20, 2014
1 parent efb8fa0 commit b1eb1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quotefix/attribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def customize_attribution(cls, original, editor, dom, reply, inreplyto, template
# Fix Yosemite attributions
import platform
osversion = platform.mac_ver()[0]
if osversion == '10.10':
html = re.sub(r'(?i)(<blockquote.*?>)(<div>.*?</div>)(<br.*?>)?', r'\2\3\1', html, count = 1)
if osversion.startswith('10.10'):
html = re.sub(r'(?i)(<blockquote.*?>)(.*?)(<br.*?>)', r'\2\3\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 <body> element.
Expand Down

0 comments on commit b1eb1dc

Please sign in to comment.