aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sx-question-print.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index e2e171b..ad53b04 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -369,7 +369,7 @@ E.g.:
(skip-chars-forward "\r\n[:blank:]")
(forward-paragraph)
(fill-region beg (point)))))
- (string-trim-right (buffer-string))))
+ (replace-regexp-in-string "[[:blank:]]+\\'" "" (buffer-string))))
(defun sx-question-mode--dont-fill-here ()
"If text shouldn't be filled here, return t and skip over it."