summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-04-28 19:08:42 +0200
committerBastien Guerry <bzg@altern.org>2012-04-28 19:08:42 +0200
commit3d3ad17d742aafd2466fecdb5ad141761c2a82c4 (patch)
treeb7a6e01a416573244fca892707ba76757e9f1ad5
parentb69eeee54dbfa6b0d8bcc9d505c32ed5a031a981 (diff)
downloadorg-mode-3d3ad17d742aafd2466fecdb5ad141761c2a82c4.tar.gz
org-special-blocks.el: `org-line' instead of `line'.
* org-special-blocks.el (org-special-blocks-convert-html-special-cookies): Use `org-line' instead of `line'.
-rw-r--r--lisp/org-special-blocks.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/org-special-blocks.el b/lisp/org-special-blocks.el
index 43b37c6..89161f3 100644
--- a/lisp/org-special-blocks.el
+++ b/lisp/org-special-blocks.el
@@ -80,17 +80,17 @@ seen. This is run after a few special cases are taken care of."
(add-hook 'org-export-latex-after-blockquotes-hook
'org-special-blocks-convert-latex-special-cookies)
-(defvar line)
+(defvar org-line)
(defun org-special-blocks-convert-html-special-cookies ()
"Converts the special cookies into div blocks."
- ;; Uses the dynamically-bound variable `line'.
- (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
+ ;; Uses the dynamically-bound variable `org-line'.
+ (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" org-line)
(message "%s" (match-string 1))
- (when (equal (match-string 2 line) "START")
+ (when (equal (match-string 2 org-line) "START")
(org-close-par-maybe)
- (insert "\n<div class=\"" (match-string 1 line) "\">")
+ (insert "\n<div class=\"" (match-string 1 org-line) "\">")
(org-open-par))
- (when (equal (match-string 2 line) "END")
+ (when (equal (match-string 2 org-line) "END")
(org-close-par-maybe)
(insert "\n</div>")
(org-open-par))