From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexis Subject: Re: Enforcing newlines in plain text export Date: Sun, 28 Sep 2014 11:30:05 +1000 Message-ID: <871tqwh6cn.fsf@gmail.com> References: <87r3yybcqs.fsf@berkeley.edu> <87ppehao11.fsf@berkeley.edu> <87iok99hqq.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY3Rx-0004ni-Ao for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 21:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XY3Ro-00085u-AQ for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 21:38:57 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:54441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY3Ro-00085Z-0X for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 21:38:48 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj1so4837306pad.1 for ; Sat, 27 Sep 2014 18:38:40 -0700 (PDT) Received: from localhost (ppp118-209-47-212.lns20.mel4.internode.on.net. [118.209.47.212]) by mx.google.com with ESMTPSA id fk10sm8622502pab.29.2014.09.27.18.38.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 27 Sep 2014 18:38:39 -0700 (PDT) In-reply-to: <87iok99hqq.fsf@berkeley.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.