auge8472 / My-Little-Forum-1

My Little Forum 1 is a thread based forum with additional board and nested views
GNU General Public License v2.0
6 stars 2 forks source link

Change: do not split cited lines every time a new reply gets written #37

Closed auge8472 closed 4 years ago

auge8472 commented 4 years ago

With every new reply with cited text in, the length of every cited text lines gets newly determined and when it exceeds 78 chars the line gets splitted to a length of under 78 chars. That caused single words to wrap into a new line because of the quote chars that was added before. So the cites will get orphaned words in extra lines.

in example:

// the original text:
An example with a few words that will break when cited.
// first level as cite:
> An example with a few words that will break when
> cited.
// second level as cite in a cite
> > An example with a few words that will break
> > when
> > cited.
// and so forth

To prevent this, I remove the function wordwrap in the code to read the posting, one wants to reply to. A paragraph of text will now get handled as a paragraph and not as a bunch of text that should get formatted as a number of text lines.