From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6EKSGqxCsGOyygAAbAwnHQ (envelope-from ) for ; Sat, 31 Dec 2022 15:09:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yLihGaxCsGPHGwAAG6o9tA (envelope-from ) for ; Sat, 31 Dec 2022 15:09:48 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1ECCF16DB2 for ; Sat, 31 Dec 2022 15:09:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBcXu-0002Vj-Vf; Sat, 31 Dec 2022 09:09:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBcX9-000295-GX for emacs-orgmode@gnu.org; Sat, 31 Dec 2022 09:08:26 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBcX7-0001H8-8Z for emacs-orgmode@gnu.org; Sat, 31 Dec 2022 09:08:22 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D0940240119 for ; Sat, 31 Dec 2022 15:08:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672495690; bh=yl43+FK/PTKQsFgA7b+72w8lZY8PPJoNvgSsQ3OwIH4=; h=From:To:Cc:Subject:Date:From; b=OgRHfvsaLcigJoqs6/rw7y6g8gcHksqyMmAsed/8RLrdG4SqZb+/0pJDvg4xGsjOW Rs+Z7aWIQQ04vI33YM+8tALf9hAEysqeuh8ATpFaZmdaMnb7n5qjQ9s2DDTvVQD2Fw X2V77PiSh/BFZz0BbHolrLfdQ+RiZ5KURTs4tFa3UFkEg0iK6i1LqcOgkzLOgjQ4PO n6DVXrzqEIZUl6xzAJyTl1DpGW7e8HOyUsNV+YnHio4lD023nKgNXRNoADkQUecp4w OfSpzUHWsf/8oFFlILUPCpWeq2Ck0nsmxXQfatQzGQAGUUulMFHZ1AaKBxByeFnkLX oBl1BHXMgxmPA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NkkVf1vPyz6tmG; Sat, 31 Dec 2022 15:08:10 +0100 (CET) From: Ihor Radchenko To: nunnery-09-bayside@icloud.com Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Checkbox item is broken in html export with table content [9.6 (9.6-??-bed47b437 @ /Users/hw/.emacs.d/.local/straight/build-28.1/org/)] In-Reply-To: <54753EE7-FEE5-41A5-AE2F-D83D24CA2937@icloud.com> References: <54753EE7-FEE5-41A5-AE2F-D83D24CA2937@icloud.com> Date: Sat, 31 Dec 2022 14:08:41 +0000 Message-ID: <875ydracnq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672495788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QcLKuPc9g6qPqz/pQz6T/6OoT9rlParA7Wec6m43Ssg=; b=gCoyqQx3uoUKhK38HpNh6S+k9te4CK3MoseB8yK+uzrqdRjfyCUxMhSyI/kSKvxRMwIsXb 0xO3TWjRFr6qIc+y7hxlOMLXtFdK2rr2G2vlvilSZj6lF04vK5pesDDgwMPdDyNDRhmhzu Twn2qMVXPwDqwh7qip2/zuJSE4f/K+QdFljD2NhukhkNg8VlFLHzO2V/IGcVxn983do6zR ahgvsvrT+SjPLfJvLo74HiuQ/F2P1YT31TCH6VbPns1oScK5w72z+qW5hfY/9rZqv1cwxK RgBBH0VDMIfoE4wzShIdzZof5jGKoC5vw9sPC2RjuRK2nm+5ho2LufVXrx1kkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OgRHfvsa; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672495788; a=rsa-sha256; cv=none; b=DJSxFsMXbx0Gr7ugUbRa0ktjXHr1fgeVMM6Xtq7I06iA/kjSMsOn8v6A05elD5TimSovLT 8DO66VtZGr3fSV+jmVNetz6VXP2w8Gj8Ed5tSWCN97zAAMGlkVNKOMMyqLqxK+fwpXFD5m G0PUEJ8sI2CMPcFTrSuSX+DMO4VbcgOiwumlikP7K3vvbWFqyJYfh4sKeLOkQA9elfe1Ul U3OwOTRGpOOwZi3LUz2A11hk20XfIZLXtwXwXYDfvo1+Ie4blxxDhIe2vaOmiMDQlM36xZ yoYy9yPCNHIGB/tutjCAUIokksoIjP+RfxFMKWkzNZEMkNKzhLCShpsJhBwmGw== X-Spam-Score: -4.17 X-Migadu-Queue-Id: 1ECCF16DB2 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OgRHfvsa; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.17 X-TUID: XdIf6SmopsRA nunnery-09-bayside@icloud.com writes: > The HTML Export is a bit broken when the checkbox item has table > content. See the HTML exporting difference between section A and B in follow code. (also attached a screenshot below) > > #+BEGIN_SRC org > * A > 1. [ ] test > 2. [ ] foo > 3. [ ] bar > > * B > a. [ ] foo > b. [ ] bar > > | a | b | c | > |---+---+---| > | 1 | 1 | 1 | > | 2 | 2 | 2 | > #+END_SRC Confirmed, but my HTML-foo is not good enough to understand what is wrong. The HTML fragment in question is
  • [ ] foo
  • [ ]

    bar

    The second item is _rendered_ with a newline when paragraph is inserted. Probably, the reason is

    tag in the first paragraph of the item. I am not sure, however, if it is safe to drop it. `org-html-paragraph' only drops

    for first paragraph in an item that is followed by either plain string or a sub-list: ((and (eq parent-type 'item) (not (org-export-get-previous-element paragraph info)) (let ((followers (org-export-get-next-element paragraph info 2))) (and (not (cdr followers)) (memq (org-element-type (car followers)) '(nil plain-list))))) ;; First paragraph in an item has no tag if it is alone or ;; followed, at most, by a sub-list. contents) The relevant commit is 9a34a13c: 9a34a13c077f592c5528d95c155ecdf2d655937e Author: Nicolas Goaziou AuthorDate: Tue Aug 26 09:51:20 2014 +0200 Commit: Nicolas Goaziou CommitDate: Tue Aug 26 09:55:54 2014 +0200 ox-html: Better criterion for first paragraphs in lists * lisp/ox-html.el (org-html-paragraph): Do not wrap first paragraph in an item within

    tags in the most simple cases. Thanks to Daniel Clemente for suggesting it. http://permalink.gmane.org/gmane.emacs.orgmode/89413 The diff in the commit suggests that dropping

    is not desirable when non-paragraphs are present in the list. In the above example, a table is present. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at