From 5a595daa4ffc85d7e0e6b179ec4980bc28d223f0 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Thu, 4 Mar 2004 17:00:00 +0000 Subject: [PATCH] Bug 11080 news "spoiler" feature p=mnyromyr@tprac.de r=ben.bucksch sr=bienvenu --- netwerk/streamconv/converters/mozTXTToHTMLConv.cpp | 7 +++++++ themes/classic/messenger/messageBody.css | 6 ++++++ themes/modern/messenger/messageBody.css | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp index 853711aff8d..3b51c9f4e37 100644 --- a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp +++ b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp @@ -893,6 +893,13 @@ mozTXTToHTMLConv::GlyphHit(const PRUnichar * aInString, PRInt32 aInLength, PRBoo } i++; } + if (text0 == '\f') + { + aOutputString.Append(NS_LITERAL_STRING("")); + glyphTextLen = 1; + MOZ_TIMER_STOP(mGlyphHitTimer); + return PR_TRUE; + } if (text0 == '+' || text1 == '+') { if (ItMatchesDelimited(aInString, aInLength, diff --git a/themes/classic/messenger/messageBody.css b/themes/classic/messenger/messageBody.css index cbddc8f9c45..1f257dd0b64 100644 --- a/themes/classic/messenger/messageBody.css +++ b/themes/classic/messenger/messageBody.css @@ -129,6 +129,12 @@ span.moz-txt-underscore { text-decoration: underline; } +span.moz-txt-formfeed { + display: block; + height: 100%; +} + + /* ::::: signature ::::: */ .moz-txt-sig, diff --git a/themes/modern/messenger/messageBody.css b/themes/modern/messenger/messageBody.css index aa724da0934..e1fad520cdf 100644 --- a/themes/modern/messenger/messageBody.css +++ b/themes/modern/messenger/messageBody.css @@ -129,6 +129,12 @@ span.moz-txt-underscore { text-decoration: underline; } +span.moz-txt-formfeed { + display: block; + height: 100%; +} + + /* ::::: signature ::::: */ .moz-txt-sig,