Procházet zdrojové kódy

org: Insert a blank with structure template type "src"

Marco Wahl před 7 roky
rodič
revize
3f2968c650
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -11918,7 +11918,7 @@ in the block.  Otherwise, insert an empty block."
     (setq column (current-indentation))
     (beginning-of-line)
     (indent-to column)
-    (insert (format "#+begin_%s\n" type))
+    (insert (format "#+begin_%s%s\n" type (if (string-equal "src" type) " " "")))
     (goto-char e)
     (if (bolp)
 	(progn