From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [html] non-lists showing up as lists Date: Sun, 02 Jun 2013 17:40:08 -0400 Message-ID: <87r4gkjio7.fsf@pierrot.dokosmarshall.org> References: <874ndj13u5.fsf@gmail.com> <51A90A6A.5090105@gmail.com> <87a9na1gi9.fsf@gmail.com> <87d2s58w0g.fsf@breezy.my.home> <87ppw5vtb2.fsf@gmail.com> <87fvx0clbx.fsf@breezy.my.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjG0n-0005yX-Vm for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 17:40:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjG0m-0008C2-Ra for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 17:40:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:38095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjG0m-0008Bm-Jo for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 17:40:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UjG0k-0004Qm-Mp for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 23:40:22 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Jun 2013 23:40:22 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Jun 2013 23:40:22 +0200 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 Alan L Tyree writes: > So: my problem is that somehow the '137.' got at the head of a line. I > have no idea how that happened. I inserted references in this document > using reftex, so I suppose that is one source to investigate. > > The other source is, no doubt, cut and paste. > > In a 60+ page document, I had four or five of these, so it is a very > annoying problem. > > In view of this, should I explore further about the source of these or > try out the patch you sent? > If the problematic lines existed in the file that you pasted into an org file, then there is nothing that org can do of course. The thing to do is to check the file *before* you "import" it into org. Here's a simple awk script to catch the two cases of plain and numbered lists: --8<---------------cut here---------------start------------->8--- #! /usr/bin/gawk -f /^ *- / {printf("Line %d: plain list element: %s\n", NR, $0);} /^ *[0-9]+\. / {printf("Line %d: numbered list element: %s\n", NR, $0);} --8<---------------cut here---------------end--------------->8--- Catching more cases and integrating the script into your workflow (and fixing any bugs) is left as an exercise. -- Nick