Closed Bug 307213 Opened 19 years ago Closed 16 years ago

Reformat paragraph when make changes to text.

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: JCF, Assigned: mscott)

Details

(Whiteboard: closeme 2008-08-28)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716

When delete material from a message that I am editing, the paragraph should
automatically reform.  As it now stands, the paragraph develops ragged edges on
the right, so that I have to manually go through and reform the paragraph.  Even
clicking on rewrap does not work.

Reproducible: Always

Steps to Reproduce:
1.  Delete any text from middle of paragraph.
2.  or Add text to the middle of a paragraph.
3.  [select rewrap]

Actual Results:  
Ragged right edge.

Expected Results:  
Reform the paragraph.
Are you talking about deleting text from a quoted section, or text that you have 
typed in?

Are you composing as plain-text or HTML?
(In reply to comment #1)
> Are you talking about deleting text from a quoted section, or text that you
> have 
> typed in?
> 
> Are you composing as plain-text or HTML?
> 

He is talking about re-wrapping plain text(not quoted text).

At least in plain-text mode the rewrap function doesn't work for plain
text.  If you are editing a paragraph you are writing, and you
introduce line breaks, there is no easy way to reformat the paragraph
and have all the line breaks in the correct place.

If the rewrap command worked on non-quoted text it would solve this
problem.  Emacs has a refill-paragraph command (Meta-q) that does the
same thing.




(In reply to comment #2)
> At least in plain-text mode the rewrap function doesn't work for plain
> text.  If you are editing a paragraph you are writing, and you
> introduce line breaks, there is no easy way to reformat the paragraph
> and have all the line breaks in the correct place.

That's true; you need to manually delete linebreaks you type in.  I think this is necessary to maintain, as if you deliberately type a line break to start a new paragraph, you don't want Rewrap to undo that.  Bug 232750 would be a useful feature to help with this.

Worse: if you Rewrap, the text you type gets linebreaks introduced that you probably didn't intend -- bug 220575.
(In reply to comment #3)

> That's true; you need to manually delete linebreaks you type in.  I
> think this is necessary to maintain, as if you deliberately type a
> line break to start a new paragraph, you don't want Rewrap to undo
> that.  Bug 232750 would be a useful feature to help with this.
> Worse: if you Rewrap, the text you type gets linebreaks introduced
> that you probably didn't intend -- bug 220575.

I see.  At first I couldn't understand your comment at all since I am
talking about re-wrapping plain text on demand.  It would never happen
automatically.

After reading your message more carefully and doing some tests I see
that you can issue the rewrap command without selected text and it
will rewrap all of the quoted text in the message.  In this case,
I agree the behavior would be a problem.  As far as I can tell the
behavior is as follows:

rewrap (no selected text):      Rewrap all quoted text in message
rewrap (selected quoted text):  Rewrap that selected quoted text
rewrap (selected plain-text):   Does nothing.

My request is to make the third case act like the second case.  If you
manually select plain text and issue a rewrap command it should rewrap
that text.

Perhaps this should be a separate RFE? 

If you are a Emacs user it is very painful not to have this feature
:).  Pico also implements this feature (called justify paragraph).
QA Contact: front-end
Reporter, does the issue still occur in the latest supported 2.0.0.x / Shredder trunk nightlies?

(1.5.0.x is now end-of-life and the latest supported 2.0.0.x is 2.0.0.16)
Whiteboard: closeme 2008-08-28
Reporter, does the issue still occur in the latest supported 2.0.0.x / Shredder trunk nightlies?

(1.5.0.x is now end-of-life and the latest supported 2.0.0.x is 2.0.0.16)
RESO INCO per lack of response to the last question(s). If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.