From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: Commas in org source blocks Date: Tue, 25 Jan 2011 21:21:55 -0500 Message-ID: References: <8739og6aje.fsf@gmail.com> <87sjwg4pm1.fsf@gmail.com> <87mxmo4eqh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47423 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phv1W-0005Io-BY for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 21:22:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phv1V-0003Gm-7U for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 21:22:18 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:48306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phv1V-0003GZ-0B for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 21:22:17 -0500 Received: by fxm12 with SMTP id 12so539664fxm.0 for ; Tue, 25 Jan 2011 18:22:16 -0800 (PST) In-Reply-To: <87mxmo4eqh.fsf@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: Eric Schulte Cc: Org-mode ml On Tue, Jan 25, 2011 at 8:48 PM, Eric Schulte wrot= e: > Jeff Horn writes: > >> On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte w= rote: >>> yes, you will need to add org-mode to you list of supported languages >>> along the directions in http://orgmode.org/manual/Languages.html >>> >>> I'll update the manual to reflect org-mode as a valid language. >> >> Done, and thanks. One last follow up. I have the following in an org >> source block (it is a child of a list item, and I like the indirect >> buffer): >> >> #+begin_src org >> =A0 =A0 =A0 =A0 ,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | Column Player | =A0 = =A0 | >> =A0 =A0 =A0 =A0 ,|------------+---+---------------+-----| >> =A0 =A0 =A0 =A0 ,| / =A0 =A0 =A0 =A0 =A0| < | =A0 =A0 =A0 =A0 =A0 =A0 = =A0 | > =A0 | >> =A0 =A0 =A0 =A0 ,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | A =A0 =A0 =A0 =A0 =A0 = =A0 | B =A0 | >> =A0 =A0 =A0 =A0 ,| Row Player | A | 1,2 =A0 =A0 =A0 =A0 =A0 | 3,4 | >> =A0 =A0 =A0 =A0 ,| =A0 =A0 =A0 =A0 =A0 =A0| B | 5,6 =A0 =A0 =A0 =A0 =A0 = | 7,8 | >> #+end_src >> >> When I export to HTML or ASCII, the table isn't produced. I was half >> expecting an org table (not an HTML table, of course) or at least a >> verbatim environment. Adding 'exports: code' didn't change anything. >> Any recommendations? > > Yes, the org-mode language has some weird default header argument which > make its use different from other languages, specifically for every > language but org-mode by default :results has the value of "replace". > Try the following to export org-mode plain or as quoted code. > > #+begin_src org :results replace :exports results > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | Column Player | =A0 =A0 = | > =A0 =A0 =A0 =A0,|------------+---+---------------+-----| > =A0 =A0 =A0 =A0,| / =A0 =A0 =A0 =A0 =A0| < | =A0 =A0 =A0 =A0 =A0 =A0 =A0 = | > =A0 | > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | A =A0 =A0 =A0 =A0 =A0 = =A0 | B =A0 | > =A0 =A0 =A0 =A0,| Row Player | A | 1,2 =A0 =A0 =A0 =A0 =A0 | 3,4 | > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| B | 5,6 =A0 =A0 =A0 =A0 =A0 | = 7,8 | > #+end_src > > #+begin_src org :results replace :exports code > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | Column Player | =A0 =A0 = | > =A0 =A0 =A0 =A0,|------------+---+---------------+-----| > =A0 =A0 =A0 =A0,| / =A0 =A0 =A0 =A0 =A0| < | =A0 =A0 =A0 =A0 =A0 =A0 =A0 = | > =A0 | > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| =A0 | A =A0 =A0 =A0 =A0 =A0 = =A0 | B =A0 | > =A0 =A0 =A0 =A0,| Row Player | A | 1,2 =A0 =A0 =A0 =A0 =A0 | 3,4 | > =A0 =A0 =A0 =A0,| =A0 =A0 =A0 =A0 =A0 =A0| B | 5,6 =A0 =A0 =A0 =A0 =A0 | = 7,8 | > #+end_src > > Cheers -- Eric > Many thanks, Eric. That did the trick! --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/