diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-10-23 14:43:00 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-10-23 14:43:00 +0200 |
commit | d600831eb70a0c87fca493f1e367193b88844137 (patch) | |
tree | 1e3fb3479904f24b1cdb12498554cb70e9e993e3 | |
parent | 987beb627715c7645be1055c055e001283f866dc (diff) | |
download | org-mode-d600831eb70a0c87fca493f1e367193b88844137.tar.gz |
Use better regexp for finding image links
* lisp/org.el (org-display-inline-images): Improve regexp
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el index 38011bf..b482b8e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16235,8 +16235,7 @@ BEG and END default to the buffer boundaries." (widen) (setq beg (or beg (point-min)) end (or end (point-max))) (goto-char (point-min)) - ;; (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~.:/\\_0-9a-zA-Z ]+" - (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~.:/\\_0-9a-zA-Z \x00080-\xfffff]+" + (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([^]\n]+?" (substring (org-image-file-name-regexp) 0 -2) "\\)\\]" (if include-linked "" "\\]"))) old file ov img) |