mail icon indicating copy to clipboard operation
mail copied to clipboard

Missing list formatting in the text editor - same for line spacing

Open handkerchief333 opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Create an e-mail message
  2. Create lists in the text editor
  3. Create line spaces, single and larger (e.g. Enter or Shift + Enter)

Expected behavior

The same list in the e-mail editor actually looks like this: create-message-list-true

This is how the distances are in reality, e.g. in Word etc.: create-message-space-true

Actual behavior

This is how it looks in the editor, which is very confusing and leads to formatting errors when sending, as you cannot see the indentation when composing. create-message-list

This is what it looks like when writing: create-message-space

Mail app version

3.5.4

Mailserver or service

No response

Operating system

FreeBSD 13.2

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database

MariaDB

Additional info

It would be great if the text editor generally displayed the same formatting as the e-mail is displayed in view mode.

I'm also thinking of single and multiple line breaks, which can also cause problems. When composing an e-mail, you cannot see visually whether you have made only one or a larger line spacing (e.g. Enter or Shift + Enter).

handkerchief333 avatar Feb 14 '24 07:02 handkerchief333

It would be great if the text editor generally displayed the same formatting as the e-mail is displayed in view mode.

I agree but this is technically challenging. When composing, the CSS of Nextcloud applies and gives the text a certain style. Then, once received, it's up to the engine of the email program to render the HTML again. To get a more deterministic style while composing and reading the sent email we probably have to add our own css in the editor and embed that same css in the HTML email.

ChristophWurst avatar Feb 14 '24 19:02 ChristophWurst

Related: https://github.com/nextcloud/server/issues/43393

ChristophWurst avatar Feb 14 '24 19:02 ChristophWurst

I understand that technically. It doesn't have to be 100% exactly the same either, as close as possible is enough. Currently, the edit view and the final view are too far apart.

handkerchief333 avatar Feb 15 '24 10:02 handkerchief333

The latest updates have made it even worse. Now you no longer see any bullet points or indentations when composing e-mails.

This is what the list looks like in the e-mail editor list-create

And this is how the list is formatted and looks to the recipient list-should-be

Mail version: 3.6.0 Nextcloud: 28.0.4

handkerchief333 avatar Apr 26 '24 16:04 handkerchief333