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*")
|
||||
|
||||
(defvar puml-output-type
|
||||
(cond ((image-type-available-p 'svg) "svg")
|
||||
((image-type-available-p 'png) "png")
|
||||
(t "utxt"))
|
||||
(if (not (display-images-p))
|
||||
"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.")
|
||||
|
||||
(defun puml-read-output-type ()
|
||||
|
|
Loading…
Reference in New Issue