Browse Source

Fix export of long links in code examples

Carsten Dominik 15 years ago
parent
commit
05f7b57556
2 changed files with 4 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-exp.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-02-02  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-exp.el (org-export-concatenate-multiline-links): The for
+	protectedness at beginning of match.
+
 	* org-latex.el (org-export-latex-fix-inputenc): Never leave the
 	AUTO as a coding system, instead default to utf8.
 

+ 1 - 1
lisp/org-exp.el

@@ -2035,7 +2035,7 @@ This is to make sure that the line-processing export backends
 can work correctly."
   (goto-char (point-min))
   (while (re-search-forward "\\(\\(\\[\\|\\]\\)\\[[^]]*?\\)[ \t]*\n[ \t]*\\([^]]*\\]\\(\\[\\|\\]\\)\\)" nil t)
-    (org-if-unprotected
+    (org-if-unprotected-at (match-beginning 1)
      (replace-match "\\1 \\3")
      (goto-char (match-beginning 0)))))