From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YIOiFfkK9F/8TgAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 06:45:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uPVtEfkK9F8TLgAAbx9fmQ (envelope-from ) for ; Tue, 05 Jan 2021 06:45:13 +0000 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 ACB039402A0 for ; Tue, 5 Jan 2021 06:45:12 +0000 (UTC) Received: from localhost ([::1]:55696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwg5f-0006mE-Kk for larch@yhetil.org; Tue, 05 Jan 2021 01:45:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwg4L-0006it-T8 for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 01:43:49 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:42281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwg4J-000846-MH for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 01:43:49 -0500 Received: by mail-lf1-x134.google.com with SMTP id b26so70206370lff.9 for ; Mon, 04 Jan 2021 22:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oKNZsjAsTq0QZzQXI5Aw7EZtEkFSSegI77r6gwM3rPY=; b=SbuoWk01JDiRLBQNLus2GJ6yWd/5uDvqXjUJsYMxWnlR/HCc2ihUGovqCa8MhZ7NBJ 7w8sRvBUJ3Yivl5Wrc/kXxl3RM+MyMu7v7F+tB1OikQ5NtKc6o62LZjns36y20y4YEL2 5z3HqdEEPm/89DBqEnWewWOVe8xvtMPeq9LEsuQPvayfDQSTiRzUYcPoIUd2gprWmSu1 5X1kealc7f8bgav/PJy91L/9E/6JsaX+3vDLbxZKQKFmBylWWYOvSa9r9ePMDVNY8C/n OMS+IrWm6cb0tqsbN7BmeZh6wzwYW4lUj+cy6Ni3JslEHAiGk15sloYuRFgbTLsLtoX3 anpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oKNZsjAsTq0QZzQXI5Aw7EZtEkFSSegI77r6gwM3rPY=; b=IKgC9Jfso4esThxhhx1mSnEHp1FPUVpOo+2Ud6E/+mH0aU83EPwsn7qUliZclggOyz yJ3gIwfLhQuZCjusMG8FnktixKsRe7NGjxd5JvIc+USg8jrB639utYXGBv6U2fhby3C8 sHCgcgMLksnkxP1nRmFzIzUp8Xq/fuFeg54SqnG8yiRf9/OTFdxYF5mSjGF29Lvuj/LG 27wEQH1zqqkUq8bPBQt4uOeSlZ1HALREqYC7CNoZH+x5hHeqyh8UVEKqcGSVtu6Pn4bF lv7+6VDhChCwRYVUQXcDz0uNup+xrwOsQH//cnwVDhJLl91c+q3g8EUiMP2fnc/HPQd6 mdBA== X-Gm-Message-State: AOAM531I94znmuuFaIzCJlML/qWtCxEWfmyC76RcF6HIfKRB00DQ5+2V sDDaDfdPqd2nfsn1HpWg25RVlqF0+X1ZJDMJ3sU= X-Google-Smtp-Source: ABdhPJw9JGbg3KfZEcAnM/FGZKSpX3io6Caeci5w009T69OIxR65cGaz3zwi8ryimWshqXuCFEUyfmqS5ONY+dOF2IU= X-Received: by 2002:ac2:5edb:: with SMTP id d27mr31790804lfq.411.1609829025666; Mon, 04 Jan 2021 22:43:45 -0800 (PST) MIME-Version: 1.0 References: <87czyjzz6x.fsf@kyleam.com> In-Reply-To: From: Kaushal Modi Date: Tue, 5 Jan 2021 01:43:09 -0500 Message-ID: Subject: Re: Regression in table.el detection? [maint] To: Kyle Meyer Content-Type: multipart/alternative; boundary="00000000000039596705b8218755" Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=kaushal.modi@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-org list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SbuoWk01; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: ACB039402A0 X-Spam-Score: -3.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: TFxiQdJHWtnc --00000000000039596705b8218755 Content-Type: text/plain; charset="UTF-8" On Tue, Jan 5, 2021 at 1:36 AM Kaushal Modi wrote: > > I'll keep looking.. > OK, when I added the same debug messages to ox-html.el, I see: ===== (table (:begin 1860 :end 2104 :type table\.el :tblfm nil :contents-begin nil :contents-end nil :value "+----------+----------+----------+ | Header 1 | Header 2 | Header 3 | +----------+----------+----------+ | a | b | c | +----------+----------+----------+ | d | e | f | +----------+----------+----------+" :post-blank 1 :post-affiliated 1860 :parent (section (:begin 1703 :end 2104 :contents-begin 1703 :contents-end 2104 :post-blank 1 :post-affiliated 1703 :parent (org-data nil #2)) (special-block (:type "description" :begin 1703 :end 1783 :contents-begin 1723 :contents-end 1765 :post-blank 1 :post-affiliated 1703 :parent #2) (paragraph (:begin 1723 :end 1765 :contents-begin 1723 :contents-end 1765 :post-blank 1 :post-affiliated 1723 :parent #3) #("Support tables written in table.el format " 0 42 (:parent #4)))) (paragraph (:begin 1783 :end 1860 :contents-begin 1783 :contents-end 1859 :post-blank 1 :post-affiliated 1783 :parent #2) (verbatim (:value "ox-hugo" :begin 1783 :end 1793 :post-blank 1 :parent #3)) #("Issue #" 0 7 (:parent #3)) (link (:type "https" :path "// github.com/kaushalmodi/ox-hugo/issues/374" :format bracket :raw-link " https://github.com/kaushalmodi/ox-hugo/issues/374" :application nil :search-option nil :begin 1800 :end 1858 :contents-begin 1853 :contents-end 1856 :post-blank 0 :parent #3) #("374" 0 3 (:parent #4))) #(" " 0 1 (:parent #3))) #0))) " ===== ox-hugo is stripping the leading/trailing spaces from the table cells, while ox-html is not. Somehow that doesn't play with the recent change to table.el detection. I'll try fixing that in ox-hugo. --00000000000039596705b8218755 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Jan 5, 2021 at 1:36 AM Kaushal Mo= di <kaushal.modi@gmail.com= > wrote:

I'll keep looking..

OK, when I added the s= ame debug messages to ox-html.el, I see:

=3D=3D=3D=3D=3D
(= table (:begin 1860 :end 2104 :type table\.el :tblfm nil :contents-begin nil= :contents-end nil :value "+----------+----------+----------+
| Hea= der 1 | Header 2 | Header 3 |
+----------+----------+----------+
| a = =C2=A0 =C2=A0 =C2=A0 =C2=A0| b =C2=A0 =C2=A0 =C2=A0 =C2=A0| c =C2=A0 =C2=A0= =C2=A0 =C2=A0|
+----------+----------+----------+
| d =C2=A0 =C2=A0 = =C2=A0 =C2=A0| e =C2=A0 =C2=A0 =C2=A0 =C2=A0| f =C2=A0 =C2=A0 =C2=A0 =C2=A0= |
+----------+----------+----------+" :post-blank 1 :post-affiliate= d 1860 :parent (section (:begin 1703 :end 2104 :contents-begin 1703 :conten= ts-end 2104 :post-blank 1 :post-affiliated 1703 :parent (org-data nil #2)) = (special-block (:type "description" :begin 1703 :end 1783 :conten= ts-begin 1723 :contents-end 1765 :post-blank 1 :post-affiliated 1703 :paren= t #2) (paragraph (:begin 1723 :end 1765 :contents-begin 1723 :contents-end = 1765 :post-blank 1 :post-affiliated 1723 :parent #3) #("Support tables= written in table.el format
" 0 42 (:parent #4)))) (paragraph (:beg= in 1783 :end 1860 :contents-begin 1783 :contents-end 1859 :post-blank 1 :po= st-affiliated 1783 :parent #2) (verbatim (:value "ox-hugo" :begin= 1783 :end 1793 :post-blank 1 :parent #3)) #("Issue #" 0 7 (:pare= nt #3)) (link (:type "https" :path "//github.com/kaushalmodi/ox-hugo/issue= s/374" :format bracket :raw-link "https://github.com/kaushalmodi/ox-hugo/i= ssues/374" :application nil :search-option nil :begin 1800 :end 18= 58 :contents-begin 1853 :contents-end 1856 :post-blank 0 :parent #3) #(&quo= t;374" 0 3 (:parent #4))) #("
" 0 1 (:parent #3))) #0)))<= br>"<!-- This HTML table template is generated by emacs 28.0.50 --&= gt;
=3D=3D=3D=3D=3D

ox-hugo is stripping= the leading/trailing spaces from the table cells, while ox-html is not. So= mehow that doesn't play with the recent change to table.el detection.

I'll try fixing that in ox-hugo.
--00000000000039596705b8218755--