summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-02-07 08:48:52 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-02-07 08:48:52 (GMT)
commitb6eceef02a24787a2aa7b70492796caf296ae4d1 (patch)
treeb68e3ee48714ae5186eac649242960053dc2b80b
parent3b3ffd54337c2c829cd7813bf0f62aa844c1c35d (diff)
downloadorg-mode-b6eceef02a24787a2aa7b70492796caf296ae4d1.zip
org-mode-b6eceef02a24787a2aa7b70492796caf296ae4d1.tar.gz
org-html.el (org-export-html-special-string-regexps): Reintroduce
* org-html.el (org-export-html-special-string-regexps): Reintroduce. Thanks to Samuel Wales for reporting this.
-rw-r--r--contrib/lisp/org-html.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/lisp/org-html.el b/contrib/lisp/org-html.el
index 58de1c7..26782d9 100644
--- a/contrib/lisp/org-html.el
+++ b/contrib/lisp/org-html.el
@@ -2463,6 +2463,13 @@ is nil, return nil."
(setq start (+ start (length wd))))))))
s)
+(defconst org-export-html-special-string-regexps
+ '(("\\\\-" . "&shy;")
+ ("---\\([^-]\\)" . "&mdash;\\1")
+ ("--\\([^-]\\)" . "&ndash;\\1")
+ ("\\.\\.\\." . "&hellip;"))
+ "Regular expressions for special string conversion.")
+
(defun org-export-html-convert-special-strings (string)
"Convert special characters in STRING to HTML."
(let ((all org-export-html-special-string-regexps)