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





_______________________________________________
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

Reply via email to