浏览代码

fix: Latex export block command shortcut gives error because of
missing space

close #2811

Tienson Qin 4 年之前
父节点
当前提交
2460e16a34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/commands.cljs

+ 1 - 1
src/main/frontend/commands.cljs

@@ -148,7 +148,7 @@
                  (util/format "\n#+END_%s" (string/upper-case type)))
          template (str
                    left
-                   (if optional (str (if (= format :markdown) "" " ") optional) "")
+                   (if optional (str " " optional) "")
                    "\n"
                    right)
          backward-pos (if (= type "src")