Browse Source

babel: cleanup trailing newline after removed #+source and #+results lines

* contrib/babel/lisp/org-babel-exp.el (org-exp-res/src-name-cleanup):
  cleanup trailing newline after removed #+source and #+results lines
Eric Schulte 15 years ago
parent
commit
d45826943a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/babel/lisp/org-babel-exp.el

+ 1 - 1
contrib/babel/lisp/org-babel-exp.el

@@ -127,7 +127,7 @@ processing has taken place."
 	    nil t)
       (delete-region
        (progn (beginning-of-line) (point))
-       (progn (end-of-line) (point))))))
+       (progn (end-of-line) (+ 1 (point)))))))
 
 (defun org-babel-in-example-or-verbatim ()
   "Return true if the point is currently in an escaped portion of