From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ascii-export vs. "<<" and ">>" patch Date: Fri, 8 Jan 2010 09:41:25 +0100 Message-ID: References: <473d01841001070930g19ba5a3l92beeb6a8a9c5478@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTAPX-0006zd-1X for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 03:41:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTAPQ-0006yQ-Ge for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 03:41:33 -0500 Received: from [199.232.76.173] (port=52614 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTAPQ-0006yE-55 for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 03:41:28 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:57890) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTAPP-0008Kc-Ol for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 03:41:27 -0500 Received: by ewy24 with SMTP id 24so22529919ewy.26 for ; Fri, 08 Jan 2010 00:41:26 -0800 (PST) In-Reply-To: <473d01841001070930g19ba5a3l92beeb6a8a9c5478@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bryan Fink Cc: emacs-orgmode@gnu.org Hi Bryan, On Jan 7, 2010, at 6:30 PM, Bryan Fink wrote: > Hi. I'm using org-mode to write some documentation about Erlang > modules. Erlang's "binary" data type has a syntax like: > > <<"this is binary data">> > > Org-mode's ascii-exporter in version 6.33f blindly strips all <<>> > pairs from the file, leaving the text as > > "this is binary data" > > which, unfortunately, is still valid Erlang syntax, but has a > different meaning. First of all, you should have such code in code blocks like # +begin_src..., or, in running text, you need to protect it with something like =<<"this is binary data">>=. Then things will work in HTML. There is indeed a bug in ASCII export which does remove these without checking for protection - but I have just fixed that - so if you pull and protect, things should work. HTH - Carsten > > So, to help me and others write Erlang documentation in org-mode, I > submit the patch attached to this email, which changes org-ascii.el > such that it checks the org-protected text property before stripping > <<>> characters, so examples marked as verbatim text should go > untouched. > > -Bryan > <0001-do-not-strip-and-from-protected-sections-during- > asci.patch>_______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten