eww icon indicating copy to clipboard operation
eww copied to clipboard

[BUG] Whitespace isn't rendered properly

Open OBLIXi-ON opened this issue 8 months ago • 1 comments

Checklist before submitting an issue

  • [X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • [X] I have specifically verified that this bug is not a common user error
  • [X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

Whitespace rendering is different from regular convention. For example, to use new line in eww you'll have to put \\n whereas it should be \n. Using \n prints regular n instead . This makes it difficult to use escape character so you can't print \n, \t, or \ as plain text.

Reproducing the issue

Use regular escape characters such as \n, \t.

Expected behaviour

\n should print new line not regular n.

Additional context

No response

OBLIXi-ON avatar Jun 11 '24 07:06 OBLIXi-ON