From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Blank lines in literal html Date: Sun, 09 Dec 2007 01:07:05 +0000 Message-ID: <878x44ekw6.fsf@bzg.ath.cx> References: <475453D3.30604@gmail.com> <4756FC88.1050701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1AdT-0000By-4S for emacs-orgmode@gnu.org; Sat, 08 Dec 2007 20:07:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1AdR-0000Bm-Rb for emacs-orgmode@gnu.org; Sat, 08 Dec 2007 20:07:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1AdR-0000Bj-OI for emacs-orgmode@gnu.org; Sat, 08 Dec 2007 20:07:09 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J1AdR-0000xI-7I for emacs-orgmode@gnu.org; Sat, 08 Dec 2007 20:07:09 -0500 Received: by nf-out-0910.google.com with SMTP id f5so744063nfh for ; Sat, 08 Dec 2007 17:07:08 -0800 (PST) In-Reply-To: <4756FC88.1050701@gmail.com> (Wanrong Lin's message of "Wed, 05 Dec 2007 14:31:20 -0500") 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: Wanrong Lin Cc: org-mode list Hi Wanrong, Wanrong Lin writes: > Finally, I decided to learn some elisp debugging techniques and as a > practice, it seems I found the bug and fixed it with this patch (against > org.el in 5.16b) > > @@ -24437,7 +24437,7 @@ > (when (re-search-backward > "\\(

\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) > (setq par (match-string 1)) > - (replace-match "\\2\n")) > + (replace-match "")) > (insert line "\n") > (while (and lines > (get-text-property 0 'org-protected (car lines))) > > I am not completely sure whether this is the right fix, but so far the > output looks OK to me. Thanks for this. I think the patch is safe (I'm testing it for two or three days now) but I cannot predict it will be in any cases. I guess Carsten will have a better call on this. (BTW, the issue your raising here concerns the way the HTML code *looks* and IMO they are less important than issues regarding the correctness of the HTML code... Just a thought.) -- Bastien