Skip to content

Commit

Permalink
Properly separate haddock paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
gracjan committed Dec 26, 2015
1 parent 3c8e6c8 commit 9c14bd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ Minor modes that work well with `haskell-mode':
(set (make-local-variable 'paragraph-start)
(concat " *{-\\| *-- |\\|" page-delimiter))
(set (make-local-variable 'paragraph-separate)
(concat " *$\\| *-- |\\| *\\({-\\|-}\\) *$\\|" page-delimiter))
(concat " *$\\| *\\({-\\|-}\\) *$\\|" page-delimiter))
(set (make-local-variable 'fill-paragraph-function) 'haskell-fill-paragraph)
;; (set (make-local-variable 'adaptive-fill-function) 'haskell-adaptive-fill)
(set (make-local-variable 'adaptive-fill-mode) nil)
Expand Down
2 changes: 0 additions & 2 deletions tests/haskell-mode-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,6 @@ Also should respect 10 column fill."
'("-- @| a b c d")))

(ert-deftest fill-comment-haddock-2 ()
;; FIXME: This shouldn't be failing, https://github.com/haskell/haskell-mode/issues/851.
:expected-result :failed
(check-fill '("-- | a b c"
"-- d e")
'("-- @| a b c d"
Expand Down

0 comments on commit 9c14bd0

Please sign in to comment.