Roundup Tracker - Issues

Issue 2551070

classification
Title: textarea wrap="hard" doesn't work with firefox 68
Type: behavior Severity: normal
Components: Web interface Versions:
process
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: LudwigReiter, ThomasAH, rouilj
Priority: Keywords:

Created on 2019-11-29 09:57 by LudwigReiter, last changed 2020-01-02 10:07 by ThomasAH.

Messages
msg6825 Author: [hidden] (LudwigReiter) Date: 2019-11-29 09:57
In the Web interface we use textareas with wrap="hard" to wrap text.
But there is following bug in FF68:
Textarea wrap=hard does not actually insert newlines when posting
https://bugzilla.mozilla.org/show_bug.cgi?id=1568313

A possible solution could be:
* implement serverside wrap for the textarea string.
* implement a client side wrap with javascript and for FF only.
msg6826 Author: [hidden] (ThomasAH) Date: 2019-11-29 10:00
* Ludwig Reiter <issues@roundup-tracker.org> [20191129 10:57]:
> * implement a client side wrap with javascript and for FF only.

This does not have to be only for Firefox, it could be used for all
browsers to get a consistent word wrap behaviour (ideally with
a preview to show how the wrap will be at the end, currently you can
only see the result after submitting) across all browsers.
msg6844 Author: [hidden] (rouilj) Date: 2019-12-22 00:59
Note version 68 is an ESR release. The problem occurs in newer (71.0) 
releases as well.

I just tested against my demo tracker with ff 71.0.

On display inside a pre.msg, I have css set to:

  white-space: pre-wrap;
  word-wrap: break-word;

so even the one long line is displayed wrapped and I don't get
a horizontal scroll bar. The file db/file/msg/35/35529 does have
one long non newline terminated line.

This does bring up an issue where an additional class may need to be 
added to the msg.item.html template to allow the original formatting of 
the message without whitespace wrapping to be viewable.

Question, if a text email arrives with one long line, does it display
properly in the web interface? Is it stored as one long line?

If so then how does this bug manifest differently than the one long 
line in email?
msg6855 Author: [hidden] (rouilj) Date: 2019-12-25 02:21
RFE request to wrap long lines in email is  https://issues.roundup-
tracker.org/issue2550902
msg6859 Author: [hidden] (ThomasAH) Date: 2020-01-02 10:07
* John Rouillard <issues@roundup-tracker.org> [20191222 02:00]:
> Question, if a text email arrives with one long line, does it display
> properly in the web interface? Is it stored as one long line?
> 
> If so then how does this bug manifest differently than the one long 
> line in email?

The difference is:
- In mail clients you usually have the option to automatically
  format/wrap your text, often even a full editor.
- In web clients you usually don't have such tools available.
  Especially since Firefox 60, where configuring an external editor
  for text areas became much more complicated due to new security
  improvements/restrictions.
History
Date User Action Args
2020-01-02 10:07:18ThomasAHsetmessages: + msg6859
2019-12-25 02:21:36rouiljsetmessages: + msg6855
2019-12-22 00:59:57rouiljsetnosy: + rouilj
messages: + msg6844
2019-11-29 10:00:25ThomasAHsetnosy: + ThomasAH
messages: + msg6826
title: textarea wrap="hard" doesn't work with firefox 68 -> textarea wrap="hard" doesn't work with firefox 68
2019-11-29 09:57:21LudwigReitercreate