Browse Source

org-freemind.el: Fix bug when converting links

* org-freemind.el (org-freemind-convert-links-from-org):
Replace literally to prevent errors when replacing with string
containing backslashes.

Thanks to Martin Beck for reporting this.
Bastien Guerry 12 years ago
parent
commit
8e307a8ef2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-freemind.el

+ 1 - 1
lisp/org-freemind.el

@@ -334,7 +334,7 @@ MATCHED is the link just matched."
      "\\[\\[\\(.*?\\)]\\[\\(.*?\\)]]"
      ;;"<a href=\"\\1\">\\2</a>"
      'org-freemind-convert-links-helper
-     fm-str)))
+     fm-str t t)))
 
 ;;(org-freemind-convert-links-to-org "<a href=\"http://www.somewhere/\">link-text</a>")
 (defun org-freemind-convert-links-to-org (fm-str)