Code blocks expressions may be incorrectly merged and formatted as a single one
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
elm-format version: 0.8.2
When running `elm-format` once on the following top-level comment with two expression examples in a code block:
```
{-|
1 == 1
(-2 == 3)
-}
```
We get:
```
{-|
1 == 1
-2 == 3
-}
```
But when running `elm-format` again, we get:
```
{-|
1
== 1
- 2
== 3
-}
```
This is most likely not an expected result.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the example with elm-format 0.8.2 and running the formatter twice, comparing how the two expressions in the top-level comment code block change. Inspect the formatting path for comment code blocks; done means repeated formatting is stable and the two examples remain separate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100