From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG] Export to ascii fails Date: Wed, 19 Jan 2011 10:57:38 +0100 Message-ID: <6290AF72-0676-4D37-9C6A-6F2E6625100A@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=38599 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfUnX-0000ss-4k for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 04:57:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfUnV-0005Sz-0m for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 04:57:51 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:33393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfUnU-0005SK-RN for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 04:57:48 -0500 Received: by fxm12 with SMTP id 12so645595fxm.0 for ; Wed, 19 Jan 2011 01:57:46 -0800 (PST) In-Reply-To: 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: =?ISO-8859-1?Q?Valentin_W=FCstholz?= Cc: emacs-orgmode@gnu.org Fixed, thanks. - Carsten On Jan 14, 2011, at 1:36 PM, Valentin W=FCstholz wrote: > Hi, > > I ran into a bug with the ascii export. Exporting the attached org > file to ascii fails (see the attached backtrace). The failure seems to > be related to the 'H:10' option. > > I had a look at the code and the following patch seemed to alleviate =20= > the issue: > > ------------------------------ lisp/org-ascii.el =20 > ------------------------------ > index 99facb1..25cdf12 100644 > @@ -637 +637 @@ publishing directory." > - (let (char (n (- level umax 1)) (ind 0)) > + (let (char (n (- level 1)) (ind 0)) > @@ -655 +655 @@ publishing directory." > - (setq char (nth (- umax level) (reverse org-export-ascii-=20 > underline))) > + (setq char (nth n (reverse org-export-ascii-underline))) > > This will however still fail, if (length org-export-ascii-underline) =20= > <=3D n. > > Best regards, > > Valentin > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten