From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [RFC]: Uniform indentation for lists Date: Tue, 25 Jun 2013 03:28:34 +0530 Message-ID: <87hagntblh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrElD-0000wT-IR for emacs-orgmode@gnu.org; Mon, 24 Jun 2013 17:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrElC-0007Sm-NN for emacs-orgmode@gnu.org; Mon, 24 Jun 2013 17:57:19 -0400 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:50069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrElC-0007SA-G0 for emacs-orgmode@gnu.org; Mon, 24 Jun 2013 17:57:18 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so11499661pad.23 for ; Mon, 24 Jun 2013 14:57:17 -0700 (PDT) Received: from debian-6.05 ([115.241.54.54]) by mx.google.com with ESMTPSA id v7sm19833813pbq.32.2013.06.24.14.57.15 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 24 Jun 2013 14:57:16 -0700 (PDT) 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@gnu.org This request is a result of adding Org-mode support to Oddmuse. (See my earlier mail that introduces Orgmuse). When lists are "normalized", the sub-lists are introduced by varying amout of spaces depending on the type of the parent list. It's 3 spaces if the parent is numbered and 2 spaces if the parent is bulleted. 1. One 2. Two - Bullet One - Bullet Two 1. One 2. Two Oddmuse wiki and possibly Usemod (and even other Wiki engines) do a linear scan of text (much like what the old org-html.el used to do) and emits HTML by looking at thing at point. Having the list items introduced by varying amout of spaces makes the parser "more" stateful. I was wondering whether there would be some interest in 1) To eliminate the separators - "." or ")" - in the numbered list 2) Enhance the list repair routine so that it will alway indent by 3 spaces. With (1) above, the earlier list becomes, 1 One 2 Two - Bullet One - Bullet Two 1 One 2 Two This gives a uniform indentation of 2 spaces. With (2) or (3), the earlier list becomes, 1. One 2. Two - Bullet One - Bullet Two 1. One 2. Two This gives an indentation of 3 spaces. The 3 spaces could either be mandated by the canonical Org-markup spec or it could be ensured by the author of Org document himself (by using the proposed new repair option)