From: Art Cancro Date: Sun, 11 Jul 2010 03:11:26 +0000 (+0000) Subject: * Eliminated the C code to shorten long subject lines and add an ellipsis. It doesn... X-Git-Tag: v7.86~107 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=355f6286d5aeef9079b9ba8a0a90528720b09b11 * Eliminated the C code to shorten long subject lines and add an ellipsis. It doesn't cut off in the right place anyway. Matt put something in the style sheet to let the browser render the ellipsis. It works in Opera and IE, and it'll work in Mozilla soon, degrading to a simple clipping otherwise. --- diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 2d1e63f60..a734b8bc9 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -1242,18 +1242,8 @@ int ParseMessageListHeaders_Detail(StrBuf *Line, StrBufAppendBufPlain(Msg->subj, _("(no subject)"), -1,0); else { StrBuf_RFC822_to_Utf8(Msg->subj, ConversionBuffer, WCC->DefaultCharset, NULL); - if ((StrLength(Msg->subj) > 75) && - (StrBuf_Utf8StrLen(Msg->subj) > 75)) { - StrBuf_Utf8StrCut(Msg->subj, 72); - StrBufAppendBufPlain(Msg->subj, HKEY("..."), 0); - } } - if ((StrLength(Msg->from) > 25) && - (StrBuf_Utf8StrLen(Msg->from) > 25)) { - StrBuf_Utf8StrCut(Msg->from, 23); - StrBufAppendBufPlain(Msg->from, HKEY("..."), 0); - } return 1; }