瀏覽代碼

plot: handles option lines starting after column 0

  Thanks to Thomas Holst for the patch
Eric Schulte 15 年之前
父節點
當前提交
0de593757c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-plot.el

+ 1 - 1
lisp/org-plot.el

@@ -301,7 +301,7 @@ line directly before or after the table."
 	(setf table (delq 'hline (cdr table)))) ;; clean non-data from table
       ;; collect options
       (save-excursion (while (and (equal 0 (forward-line -1))
-				  (looking-at "#\\+"))
+				  (looking-at "[[:space:]]*#\\+"))
 			(setf params (org-plot/collect-options params))))
       ;; dump table to datafile (very different for grid)
       (case (plist-get params :plot-type)