From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hrvoje Niksic Subject: Re: [PATCH] Markup on same line as text Date: Wed, 16 Feb 2011 21:04:29 +0100 Message-ID: <87zkpvkape.fsf@xemacs.org> References: <4D263E3B.5030407@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpncB-0000Tf-DK for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:04:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ppnc9-0003XC-Be for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:04:42 -0500 Received: from smtp2.xnet.hr ([83.139.103.74]:44514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppnc9-0003RA-38 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:04:41 -0500 Received: from mail.globalnet.hr (cartman.bnet.hr [213.149.32.10]) by smtp2.xnet.hr (XnetMailOut) with ESMTP id A27A38A40B for ; Wed, 16 Feb 2011 21:04:32 +0100 (CET) In-Reply-To: <4D263E3B.5030407@gmail.com> (Roland Kaufmann's message of "Thu, 06 Jan 2011 23:12:11 +0100") 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: Roland Kaufmann Cc: emacs-orgmode@gnu.org Sorry for taking a very long time to respond. Roland Kaufmann writes: > (let ((x 42)) ; meaning of l.u.e. > (print x)) > ^^^^^^^ > The first closing tag is really the end of the comment which is > spilled to the next line, but it erraneously closes the id span. If so, that would be a bug in htmlize. While Emacs supports arbitrarily overlapping properties/overlays/extents, HTML doesn't, and htmlize is normally careful to describe each unchanged run of text on its own. I am not familiar with org-mode, so I will need a description of exactly how to reproduce this bug. Specifically I don't know how to put a reference on the next line. Your patch may work in this particular case, but the idea behind htmlize is to describe the state of the buffer. If a property ends after the newline, it is intended that the generated HTML reflect this. Hrvoje