adium 2225:f5e11f50e7b9: Add a workaround for #11981. Refs #11981
commits at adium.im
commits at adium.im
Sun May 17 18:25:29 UTC 2009
details: http://hg.adium.im/adium/rev/f5e11f50e7b9
revision: 2225:f5e11f50e7b9
author: David Smith <catfish.man at gmail.com>
date: Sun May 17 11:25:09 2009 -0700
Add a workaround for #11981. Refs #11981
diffstat:
Plugins/WebKit Message View/AIWebkitMessageViewStyle.m | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 36eca2a3a9ab -r f5e11f50e7b9 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Sun May 17 09:56:15 2009 -0700
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Sun May 17 11:25:09 2009 -0700
@@ -797,8 +797,12 @@
[inString replaceKeyword:@"%time%"
withString:(date ? [timeStampFormatter stringFromDate:date] : @"")];
+ NSString *shortTimeString = (date ? [[NSDateFormatter localizedDateFormatterShowingSeconds:NO showingAMorPM:NO] stringFromDate:date] : @"");
+#warning working around http://trac.adium.im/ticket/11981
+ if ([shortTimeString hasSuffix:@" "])
+ shortTimeString = [shortTimeString substringToIndex:shortTimeString.length - 1];
[inString replaceKeyword:@"%shortTime%"
- withString:(date ? [[NSDateFormatter localizedDateFormatterShowingSeconds:NO showingAMorPM:NO] stringFromDate:date] : @"")];
+ withString:shortTimeString];
if ([inString rangeOfString:@"%senderStatusIcon%"].location != NSNotFound) {
//Only cache the status icon to disk if the message style will actually use it
More information about the commits
mailing list