aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-03 13:20:56 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-03 13:20:56 -0200
commitf275e00c221c506cd4f22144649649e65179e3cc (patch)
tree05c0b3584bb86a45953034e45ff51028de1c8d34
parentba4489691847ed1cff2f33f1bfa9aeda85af2a6b (diff)
Use sx--squash-whitespace in sx-question-mode--print-comment
Fix #246
-rw-r--r--sx-question-print.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index f9ecfab..778b580 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -286,10 +286,10 @@ The comment is indented, filled, and then printed according to
(format sx-question-mode-comments-format
(sx-user--format "%d" .owner)
(substring
- ;; We fill with three spaces at the start, so the comment is
- ;; slightly indented.
(sx-question-mode--fill-and-fontify
- (concat " " .body_markdown))
+ ;; We fill with three spaces at the start, so the comment is
+ ;; slightly indented.
+ (concat " " (sx--squash-whitespace .body_markdown)))
;; Then we remove the spaces from the first line, since we'll
;; add the username there anyway.
3))))))