emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Enforcing newlines in plain text export


From: Alexis
Subject: Re: [O] Enforcing newlines in plain text export
Date: Sun, 28 Sep 2014 11:30:05 +1000

Richard Lawrence writes:

> Does anyone know why the behavior of "\\" is presently restricted to
> appearing at the end of the line in a paragraph?  Does anyone need it
> to be exported literally when it appears elsewhere?

When exporting code listings in any programming language which uses '\'
for escaping characters in strings, and subsequently uses '\\' to mean
"literal backslash", literal export is required. For example, one might
have an Org document with Emacs Lisp source:

  -----
 ' * A
 | ** B
 | #+begin_src emacs-lisp
 |   (setq my-regex "\\\\(.+\\\\)")
 | #+end_src
 `-----


Alexis.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]