branch: elpa/consult-flycheck
commit 3f2a7c17cc2fe64e0c07e3bf90e33c885c0d7062
Author: Sergey Firsov <[email protected]>
Commit: GitHub <[email protected]>
Fix formatting bug when newline character is in error messages (#3)
---
consult-flycheck.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/consult-flycheck.el b/consult-flycheck.el
index 460bdb3d1c..2a102a35c8 100644
--- a/consult-flycheck.el
+++ b/consult-flycheck.el
@@ -96,7 +96,9 @@ In contrast to `flycheck-error-level-<' sort errors first."
(_ ?i)))
(propertize line 'face 'flycheck-error-list-line-number)
(propertize level-name 'face
(flycheck-error-level-error-list-face level))
- (propertize (flycheck-error-message err) 'face
'flycheck-error-list-error-message)
+ (propertize (subst-char-in-string ?\n ?\s
+ (flycheck-error-message
err))
+ 'face 'flycheck-error-list-error-message)
(propertize (symbol-name (flycheck-error-checker err))
'face 'flycheck-error-list-checker-name))))
errors)))