From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] ASCII back-end for new export engine Date: Sun, 29 Jan 2012 00:58:54 +0100 Message-ID: <874nvfl6pt.fsf@gmail.com> References: <87pqec4xua.fsf@gmail.com> <87lip04pyy.fsf@gmail.com> <87hazo3wdl.fsf@gmail.com> <878vksq6d9.fsf@gmail.com> <87wr8bpl79.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrICa-0008Gt-QE for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 19:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrICZ-0004hx-PJ for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 19:01:00 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:47138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrICZ-0004ho-Hu for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 19:00:59 -0500 Received: by wgbds1 with SMTP id ds1so2609031wgb.30 for ; Sat, 28 Jan 2012 16:00:58 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Sat, 28 Jan 2012 15:15:23 -0700") 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: Samuel Wales Cc: Org Mode List Samuel Wales writes: > On 2012-01-28, Nicolas Goaziou wrote: >> - This is an item with some text. > > Sets off much less. Well. I'm still not sure why plain lists should have their own indentation. In that case, tables, latex-environments, etc. should too. Though, you can still configure what you want with an appropriate filter: #+begin_src emacs-lisp (add-to-list 'org-export-filter-plain-list-functions (lambda (plain-list back-end) (if (not (eq back-end 'e-ascii)) plain-list (replace-regexp-in-string "^" " " plain-list)))) #+end_src >>> No, I mean that this is a useful way to send things to people who use >>> proportional fonts. >> >> But in the simplest cases, tables will look ugly with proportional >> fonts, no matter if you use tabs or not. It isn't worth the struggle. > > Simplest case is perhaps short numbers which always works perfectly with tabs. > > Even with ugliness, tabs make it easier to understand the table IMO. > > I won't press the issues, but did not want those to be misunderstood. I understand. You may want to test this advice, which will convert a table to tsv if "#+attr_ascii: tsv" is set above the table. #+begin_src emacs-lisp (defadvice org-e-ascii-table (around table-tsv) (if (or (not (member "tsv" (org-element-get-property :attr_ascii table))) (eq (org-element-get-property :type table) 'table.el)) ad-do-it (setq ad-return-value (orgtbl-to-tsv (org-table-to-lisp (org-element-get-property :raw-table table)) nil)))) #+end_src Regards, -- Nicolas Goaziou