emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] ascii-export vs. "<<" and ">>" patch


From: Carsten Dominik
Subject: Re: [Orgmode] ascii-export vs. "<<" and ">>" patch
Date: Fri, 8 Jan 2010 09:41:25 +0100

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

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