expert-lsp / expert-lsp/expert

Bug: removal of trailing whitespaces in multiline strings

Offen
#246 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
needs:reproduction
Vorherrschende Sprache
Elixir
Sterne
2.1k
Forks
113
Ø Merge
1 T. 10 Std.
Gemergte PRs (30 T.)
26

Beschreibung

Expert seems to remove trailing whitespaces even within a string block, i.e.
```elixir
input = ~S"""
123 328 51 64
45 64 387 23
6 98 215 314
* + * +
"""
```
becomes:
```elixir
input = ~S"""
123 328 51 64
45 64 387 23
6 98 215 314
* + * +
"""
```
A multi-line string should not be touched

Note: I run into this issue when trying to complete this years [advent of code](https://adventofcode.com/2025/day/6) puzzle (it's an issue in part2, but the block is visible already in part1)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.