From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: can I fill-paragraph some org data from the command line? Date: Wed, 12 Mar 2014 13:25:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNiE2-0003TG-Vf for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 08:25:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNiDv-0000SB-9n for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 08:25:34 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:7049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNiDv-0000Ry-2x for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 08:25:27 -0400 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 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