Summary: | all-headers display should always use direction=ltr | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Levy, Chen <kde> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Allways use ltr for all-headers dispaly |
Description
Levy, Chen
2006-06-21 09:47:02 UTC
Created attachment 16737 [details]
Allways use ltr for all-headers dispaly
I suspect that the <dir/> wrapping is not needed inside the if statement.
However, I kept it in place so the change will be minimal.
SVN commit 553736 by kloecker: Fix bug 129554 (all-headers display should always use direction=ltr) Patch by Chen Levy. Thanks. BUG: 129554 M +6 -2 headerstyle.cpp --- branches/KDE/3.5/kdepim/kmail/headerstyle.cpp #553735:553736 @@ -247,15 +247,19 @@ dateString = message->dateStr(); } - QString headerStr = QString("<div class=\"header\" dir=\"%1\">").arg(dir); + QString headerStr; if ( strategy->headersToDisplay().isEmpty() && strategy->defaultPolicy() == HeaderStrategy::Display ) { - // crude way to emulate "all" headers: + // crude way to emulate "all" headers - Note: no strings have + // i18n(), so direction should always be ltr. + headerStr= QString("<div class=\"header\" dir=\"ltr\">"); headerStr += formatAllMessageHeaders( message ); return headerStr + "</div>"; } + headerStr = QString("<div class=\"header\" dir=\"%1\">").arg(dir); + //case HdrLong: if ( strategy->showHeader( "subject" ) ) headerStr += QString("<div dir=\"%1\"><b style=\"font-size:130%\">" + |