« Return to Thread: Bug report / improvement suggestion, regarding rewrapping quotes

Re: Bug report / improvement suggestion, regarding rewrapping quotes

by Daniel W. Steinbrook :: Rate this Message:

Reply to Author | View in Thread

I, too, have been annoyed by this very phenomenon, but until you mentioned it,
I had never thought of using QuickQuote as a means of fixing this problem.
That is a great idea!

What I'd really like to do, though, is make QuickQuote a little more
TB-friendly, in the sense that its current implementation really
just "reinvents the wheel," so to speak, when it comes to quoting text, as
opposed to simply extending Thunderbird's core functionality. (The fact that
it doesn't use TB's built-in quoting seems to be the source of most of the
bugs.) On the plus side, though, this should allow for us to accomplish the
effect you mentioned with very little hacking.

- Daniel W. Steinbrook


On Friday 11 May 2007 05:24:44 am Magnus wrote:

> Hello, and thanks for you great QuickQuote extension!
>
> I have one serious problem with it though. Consider the following text
> being sent to you in an email:
>
> ----------8<------------8<----------
> This is an example of a long line that has for some reason been split up
> with hard linebreaks (e.g. by some stupid email client software), and it
> will thus look very ugly when being quoted (an re-wrapped) in the latest
> version of Quick Quote.
> ----------8<------------8<----------
>
> When I quote this message in QuickQuote with the "Rewrap quoted text to
> col (72)" option enabled, the result is the following very ugly mess:
>
> ----------8<------------8<----------
>
> > This is an example of a long line that has for some reason been split
> > up
> > with hard linebreaks (e.g. by some stupid email client software), and
> > it
> > will thus look very ugly when being quoted (an re-wrapped) in the
> > latest
> > version of Quick Quote.
>
> ----------8<------------8<----------
>
> To solve this problem I suggest an option called something like "Ignore
> single linebreaks when rewrapping", which will, as it sounds,
> ignore/delete all single linebreaks when rewrapping the quoted text, but
> still keep any double linebreaks (which is the normal way to separate
> paragraphs in emails).
>
> When this option is enabled, the result of the above quote would instead
> be:
>
> ----------8<------------8<----------
>
> > This is an example of a long line that has for some reason been split
> > up with hard linebreaks (e.g. by some stupid email client software),
> > and it will thus look very ugly when being quoted (an re-wrapped) in
> > the latest version of Quick Quote.
>
> ----------8<------------8<----------
>
> And, if the original text would instead be the following:
>
> ----------8<------------8<----------
> This is an example of a long line that has for some reason been split up
> with hard linebreaks (e.g. by some stupid email client software), and it
> will thus look very ugly when being quoted (an re-wrapped) in the latest
> version of Quick Quote.
>
> This is a second paragraph, which is also a long row which has of course
> also been split up by the same stupid email client software, and will be
> messed up the same way when quoted/re-wrapped.
> ----------8<------------8<----------
>
> The result would be:
>
> ----------8<------------8<----------
>
> > This is an example of a long line that has for some reason been split
> > up with hard linebreaks (e.g. by some stupid email client software),
> > and it will thus look very ugly when being quoted (an re-wrapped) in
> > the latest version of Quick Quote.
> >
> > This is a second paragraph, which is also a long row which has of
> > course also been split up by the same stupid email client software,
> > and will be messed up the same way when quoted/re-wrapped.
>
> ----------8<------------8<----------
>
> As you see, the double linebreak which constitutes the paragraph
> separation is retained, while all single linebreaks at normal line-ends
> have been removed before the text is rewrapped! Simple algorithm, but a
> beautiful result!
>
> Pretty optimal, don't you agree? Sadly, there are many of these stupid
> email clients out there, that split up long rows with hard linebreaks
> before sending the mail, so quotes _often_ look very ugly like in the
> first example. This is actually the entire reason that I found your
> extension, seeking a solution to this problem! And you already come so
> close with your existing rewrapping feature. This final addition would
> make it perfect!
>
> Pleeeeease consider this carefully, it would be such a great (and yet
> simple) addition!
>
> Regards,
> Magnus
> _______________________________________________
> QuickQuote mailing list
> QuickQuote@...
> http://mozdev.org/mailman/listinfo/quickquote
_______________________________________________
QuickQuote mailing list
QuickQuote@...
http://mozdev.org/mailman/listinfo/quickquote

 « Return to Thread: Bug report / improvement suggestion, regarding rewrapping quotes