mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
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:
parent
c00357d43a
commit
4e6b7fcf58
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue