From 9011bd93030920e90039c5c6adf4d8b4e544f4da Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 19 Dec 2008 18:36:53 +0100 Subject: [PATCH] Fix some small bugs. --- contrib/lisp/org-exp-blocks.el | 2 +- lisp/ChangeLog | 3 +++ lisp/org-export-latex.el | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-exp-blocks.el b/contrib/lisp/org-exp-blocks.el index 260b42997..5fb3c1e62 100644 --- a/contrib/lisp/org-exp-blocks.el +++ b/contrib/lisp/org-exp-blocks.el @@ -183,7 +183,7 @@ passed to the ditaa utility as command line arguments." (error (format "Could not find ditaa.jar at %s" org-ditaa-jar-path))) (setq body (if (string-match "^\\([^:\\|:[^ ]\\)" body) body - (mapconcat (lambda (x) (substring x (> (length x) 1) 2 1)) + (mapconcat (lambda (x) (substring x (if (> (length x) 1) 2 1))) (org-split-string body "\n") "\n"))) (cond diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f672cd2e9..0af8bf191 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-12-19 Carsten Dominik + * org-export-latex.el (org-export-latex-links): Fix bug with + undefined label. + * org-table.el (org-table-get-specials): Set `org-table-current-last-data-line'. (org-table-current-last-data-line): New variable. diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index 4dea72514..9af4d0a86 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -1207,7 +1207,7 @@ If TIMESTAMPS, convert timestamps, otherwise delete them." (expand-file-name raw-path)) (if floatp (format "\\caption{%s%s}\n" - (if label (concat "\\label{" label "}")) + (if label (concat "\\label{" label "}") "") (or caption ""))) (if floatp "\\end{figure}\n")))) (radiop (insert (format "\\hyperref[%s]{%s}" -- 2.11.4.GIT