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:
David Vazquez 2015-09-26 12:42:34 +02:00
parent 13fc1b1cbe
commit e886aff9c5
1 changed files with 5 additions and 3 deletions

View File

@ -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 ()