haskell / haskell/haskell-mode

M-q doesn't recognize lists

Open
#1,524 1 comment 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.