haskell / haskell/haskell-mode
M-q doesn't recognize lists
- Dominant language
- Emacs Lisp
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
```
-- | This is a list:
--
-- * A long line of text which is the first element of a list in a Haddock comment (the point is here: [ ])
```
When I press M-q, it is refilled like this:
```
-- | This is a list:
--
-- * A long line of text which is the first element of a list in a Haddock
-- * comment (the point is here: [ ])
```
but should be refilled like this:
```
-- | This is a list:
--
-- * A long line of text which is the first element of a list in a Haddock
-- comment (the point is here: [ ])
```
---
Here's another common example. Before refill:
```
-- | This is a list:
--
-- * Foo
-- * Bar (the point is here [ ])
```
After refill:
```
-- | This is a list:
--
-- * Foo Bar (the point is here [ ])
```
Contributor guide
Assessment
This issue has not been assessed yet.