Use utxt as default output type if can't display images
for example, if it is in terminal node (-nw)
This commit is contained in:
parent
13fc1b1cbe
commit
e886aff9c5
|
@ -124,9 +124,11 @@
|
||||||
(defconst puml-preview-buffer "*PUML Preview*")
|
(defconst puml-preview-buffer "*PUML Preview*")
|
||||||
|
|
||||||
(defvar puml-output-type
|
(defvar puml-output-type
|
||||||
(cond ((image-type-available-p 'svg) "svg")
|
(if (not (display-images-p))
|
||||||
((image-type-available-p 'png) "png")
|
"utxt"
|
||||||
(t "utxt"))
|
(cond ((image-type-available-p 'svg) "svg")
|
||||||
|
((image-type-available-p 'png) "png")
|
||||||
|
(t "utxt")))
|
||||||
"Specify the desired output type to use for generated diagrams.")
|
"Specify the desired output type to use for generated diagrams.")
|
||||||
|
|
||||||
(defun puml-read-output-type ()
|
(defun puml-read-output-type ()
|
||||||
|
|
Loading…
Reference in a new issue