emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Enforcing newlines in plain text export
Date: Sun, 28 Sep 2014 11:30:05 +1000	[thread overview]
Message-ID: <871tqwh6cn.fsf@gmail.com> (raw)
In-Reply-To: <87iok99hqq.fsf@berkeley.edu>


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.

      parent reply	other threads:[~2014-09-28  1:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFyQvY2PtupGAuDX_UDMHiJgSvTUYYGKeVqfvCzZFAU9m-KJ7g@mail.gmail.com>
2014-09-26 15:52 ` Fwd: Enforcing newlines in plain text export Richard Lawrence
2014-09-26 16:04   ` Kaushal
2014-09-26 16:14     ` Kaushal
2014-09-27  0:46     ` Richard Lawrence
2014-09-27  3:59       ` Kaushal
2014-09-27 15:59         ` Richard Lawrence
2014-09-27 21:17           ` Nicolas Goaziou
2014-09-27 21:37             ` Kaushal
2014-09-28  1:30           ` Alexis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tqwh6cn.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).