Create line breaks at width 70
Brought to you by:
albinsunnanbo
Follow the general rules at
http://www.lysator.liu.se/lyskom/protocol/11.1/Reformattable-Text--text-x-kom-basic-.html#Reformattable%20Text%20(text%2fx-kom-basic)
Logged In: YES
user_id=1315576
Originator: YES
When typing text the line breaking should not be destructive while typing. When typing text the lines should break as they will be sent, but when replacing previously written text, the rest of the text should reflow.
One way to implement this is to make the input box monospaced and set the width of the textbox to Graphics.MeasureString("WWWW...");
Another is to insert line breaks and remember the autoinserted line breaks and reflow them as needed.
A third is to implement the reformattable rules while typing and always reformat to 70 characters if not separated by two linebreaks.
(this somewhat limits the possibility to manually make shorter lines, like short bullet lists without the bulleted lines jumping up to the back of each other)
Logged In: YES
user_id=1315576
Originator: YES
Line breaks at 70 characters when creating new texts. Implemented in revision 597.
TODO: Reflowing existing texts in the GUI
Logged In: YES
user_id=1315576
Originator: YES
TODO: Handle reflowing when doing "paste as quoted" and "quote reply"
Logged In: YES
user_id=1315576
Originator: YES
Preview of line breaks in new text dialog implemented in revision 604