changeset 567:7f2e544b9cc9 dev

Add-in for option should surround with brackets
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 26 Feb 2019 22:14:56 +0900
parents 2ef9f21dd13b
children be050eec7849
files yatexadd.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yatexadd.el	Thu Jan 24 15:19:32 2019 +0900
+++ b/yatexadd.el	Tue Feb 26 22:14:56 2019 +0900
@@ -1,6 +1,6 @@
 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
 ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Thu Jan 24 13:57:49 2019 on firestorm
+;;; Last modified Tue Feb 26 22:10:53 2019 on firestorm
 ;;; $Id$
 
 ;;; Code:
@@ -2040,7 +2040,8 @@
 				 (format "%s=%s" s (symbol-value s)))))
 			 '(width height scale angle)))
 	   ","))
-    (concat "{" str "}")))
+    (if (string= "" str) ""
+      (concat "[" str "]"))))
 
 (defvar YaTeX::get-boundingbox-cmd YaTeX-cmd-gs
   "Command to get bounding box from PDF files.

yatex.org