emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inhibit converting "--" to "–"
@ 2012-06-16 23:14 Tsunenobu Kai
  2012-06-17  1:03 ` Michael Hannon
  0 siblings, 1 reply; 12+ messages in thread
From: Tsunenobu Kai @ 2012-06-16 23:14 UTC (permalink / raw)
  To: emacs-orgmode ML

Hello everyone,

When I export a org file to html, string "--" in org file is converted
to "–" in html.
I want to display "--" verbatim, so could you tell me how to inhibit
converting "--"?

Thanks, sorry for stupid question
--
Tsunenobu Kai

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Inhibit converting "--" to "–"
@ 2012-06-17  3:15 William Crandall
  2012-06-17 23:47 ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: William Crandall @ 2012-06-17  3:15 UTC (permalink / raw)
  To: kbkbkbkb1; +Cc: emacs-orgmode

Kai,

With the old exporter, you could make your own
special-string and convert it.

In init.el:

--------------------------------------------------
;; For old exporter: C-c C-e h
(eval-after-load "org"
  '(setq org-export-html-special-string-regexps
	 (append org-export-html-special-string-regexps
		 '(("-nd-" . "--")))))
--------------------------------------------------


I've not been able to get special-strings working with
the new exporter, but it should be something like:

--------------------------------------------------
;; For new exporter (but not yet)
(eval-after-load "org"
  '(setq org-e-html-special-string-regexps
	 (append org-e-html-special-string-regexps
		 '(("-nd-" . "--")))))
--------------------------------------------------

HTH

-BC

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-06-19  1:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-16 23:14 Inhibit converting "--" to "–" Tsunenobu Kai
2012-06-17  1:03 ` Michael Hannon
2012-06-17  2:11   ` Tsunenobu Kai
2012-06-17  2:18     ` Nick Dokos
2012-06-17  3:04       ` Tsunenobu Kai
  -- strict thread matches above, loose matches on Subject: below --
2012-06-17  3:15 William Crandall
2012-06-17 23:47 ` Nicolas Goaziou
2012-06-18 23:39   ` William Crandall
2012-06-19  0:04     ` Nicolas Goaziou
2012-06-19  0:39       ` William Crandall
2012-06-19  0:42         ` Nicolas Goaziou
2012-06-19  1:35           ` William Crandall

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).