Hello,

I'm playing with manipulating some data in org-mode format from the
command line (OK, I admit that I'm playing with acme).

I'm wondering if there is a tool, or a way to call emacs, to do the
following:

- get some data in org-mode format from stdin
- nicely format the text
- spit the result on stdout

I tried using "pandoc -t org" but the results are not satisfactory,
especially in the presence of lists inside lists. For instance, I would
like to convert:

#+begin_example
- This is a very long line. This is a very long line. This is a very long line. 
This is a very long line.
  - This is a very long line. This is a very long line. This is a very long 
line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This is a 
very long line. This is a very long line.
#+end_example

into this

#+begin_example
- This is a very long line. This is a very long line. This is a very
  long line. This is a very long line.
  - This is a very long line. This is a very long line. This is a very
    long line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This
    is a very long line. This is a very long line.
#+end_example

Do you have tools or an approach using emacs (as a command line tool) to
suggest?

Thanks,

Alan

Reply via email to