Also call fill-region when fontifying a buffer

Only call `fill-region` if `fill-forward-paragraph` is not the default value.
This commit is contained in:
Nathaniel Nicandro 2018-01-12 18:40:09 -06:00
parent c00357d43a
commit 4e6b7fcf58

View file

@ -214,6 +214,9 @@ string, which can then be inserted into a Jupyter REPL buffer."
new-prop)))) new-prop))))
(setq pos next)))) (setq pos next))))
(jupyter-repl-add-font-lock-properties (point-min) (point-max)) (jupyter-repl-add-font-lock-properties (point-min) (point-max))
(unless (memq fill-forward-paragraph-function
'(forward-paragraph))
(fill-region (point-min) (point-max) t t t))
(buffer-string))) (buffer-string)))
(defun jupyter-repl-insert (&rest args) (defun jupyter-repl-insert (&rest args)