Browse Source

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

close #2811

Tienson Qin 4 years ago
parent
commit
2460e16a34
1 changed files with 1 additions and 1 deletions
  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")