From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kKdxFamiNWPvTwEAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 15:50:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GOiuFKmiNWMnXAAAG6o9tA (envelope-from ) for ; Thu, 29 Sep 2022 15:50:33 +0200 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 E5CB2AB9E for ; Thu, 29 Sep 2022 15:50:32 +0200 (CEST) Received: from localhost ([::1]:38108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odtvo-0007fZ-D2 for larch@yhetil.org; Thu, 29 Sep 2022 09:50:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odsCx-0007Qd-8l for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 08:00:03 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:41497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odsCh-0004K3-Sn for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 08:00:01 -0400 Received: by mail-ej1-x62d.google.com with SMTP id hy2so2280925ejc.8 for ; Thu, 29 Sep 2022 04:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:subject:in-reply-to:cc:to :from:message-id:date:from:to:cc:subject:date; bh=qQ/RbL+ZhLJ3RPo5jev9VDBrLVRX5iXyJd2ATu3PRnc=; b=TFeFe52QXrHejcTTvCPiq4LVUiZMXvetXDyI2zLS1Ks30Gj7+o6vsix4QmLFaMKxsZ nVPCXQ4xohtAoF3GG9CYYomfQemFwwpjYIYRUFZxXHEeRW3xtQ68crDFfu0GctsQlsRn ZpwUdGzVmSJ4g2Eh88fZIuaCNGjIfq7dP9EpeCYG1zLR4sigKjXTnAQWRyjDojgHRtDk /rmQEofsFUoZO2srHnEOEd17XlgVwGk6BN6Yc9u7I3lGfh3ViR6R9+9HBIfjbL652Pcp zWpqQqydApL+Eh3XqMgfpjLEeBAN1hCcYMSRzw1IPGAhvy8P11Y9DlkVeb3y/vCHIXWi F0hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:subject:in-reply-to:cc:to :from:message-id:date:x-gm-message-state:from:to:cc:subject:date; bh=qQ/RbL+ZhLJ3RPo5jev9VDBrLVRX5iXyJd2ATu3PRnc=; b=KP3i8gsG8nM//yB/jrir9YCWeOb0RpA2WO9aVVs0WrB88aG24MHP2nq8VcsUzN7U2M IfODyY4qUdyge9GisJkL04o8nB3rUmoTxMAaf/CTBQ4VuQX1uPiFq5fdOPRfvem8twQv ChdWH14GqQo2umGdVWBKx/5SES3XXGsVUZWMLOUH8le94KbqfXrUR1LGI5Ody2sDGZen M7S7I0pEEjU/W7430hqZ4Nh1vC/lwpN+d9/ItgnDLa6Z4vikO9pZtUkqGm/qjceuBOV7 lYkgZzagqD6at3k9KLpo/1BICTuuvGduorEI/tpG7PyQQv+q/th+ztZlLgkQpYhVu7tw 6nAA== X-Gm-Message-State: ACrzQf124NGRY8wL/1I4UWfyNFzkYX8v9+PXAYjtDNQfQcpDDlUou1+w KOeeqeHL9fvjMoPjmrGkxHU2sByWtMc= X-Google-Smtp-Source: AMsMyM5GlUqCdCfbSOxWZNJfpMzwAhRTBSSIYdneXZWAuiepMwjboJWOcaeBE5RR/TuAhINpPA01jQ== X-Received: by 2002:a17:907:d04:b0:76e:e208:27ba with SMTP id gn4-20020a1709070d0400b0076ee20827bamr2490060ejc.652.1664452785358; Thu, 29 Sep 2022 04:59:45 -0700 (PDT) Received: from lukes ([2001:718:1e03:ffc2:fd72:a629:e6a5:7268]) by smtp.gmail.com with ESMTPSA id la5-20020a170907780500b00781dbdb292asm3869413ejc.155.2022.09.29.04.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 04:59:44 -0700 (PDT) Date: Thu, 29 Sep 2022 13:58:51 +0200 Message-Id: <87r0zuqtms.fsf@gmail.com> From: =?utf-8?Q?David_Luke=C5=A1?= To: theophilusx@gmail.com, diego.vincent.rodriguez@gmail.com CC: emacs-orgmode@gnu.org In-Reply-To: 87ee72l8e6.fsf@gmail.com Subject: Re: CDATA auto aggregation MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=dafydd.lukes@gmail.com; helo=mail-ej1-x62d.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664459432; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qQ/RbL+ZhLJ3RPo5jev9VDBrLVRX5iXyJd2ATu3PRnc=; b=BMQGfWMRdBHn5q/VbLo5fMq0RCeTNSPfOILM2zq38sZd0RJKTAGvlum/w2NNznTx13u1bR jmOK4TYnROmDNRAxeU5PhgsKA4kLQJN4oY0doFNgTbUrCKddNcWfjEIewQdmmitvCK5yPr DM8J+YVm3V47wZ78MiR+aZdSXbCQUKwCB8LEcipvr4p8cEK/zQtEElJ78+Ufz+YidAXmIK aVELYkJ5db8RCtVHSg94v/M+MmRCUt+qG1QE284Ca6cYBnBrG8Tjvp3x7GNfZKv/xGP5n2 jYLbV75OEFDeB2xZJoXfnLfWseE+RvpSyj1reW96g3eOHB77GY8noQH33fet9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664459432; a=rsa-sha256; cv=none; b=L5J0QN3GmP64RoRCRGCmShsCyDOiCdJuFwyxFS42GmNY0/SwwScEnGvVVuEgf3hct0qc5Y wYypaTQjKWYJKxeIhyBE1baVwHyn3RUgk409D2zIYmjS4XhF8yEVkXLOEBGSZqnq52RNrL 4VMuK+cbZHcsud9IBhEqI8m+S8zy8XTu9WJ37Cz9jZJWTGpECe7e8JaFT9sQs+J7wnONn4 1oepcQ9jl9ORIwkYMnZ6pnpK+qHeo/Fpplr1is58ZJC5pFLXrOC6L7w/+nZZj7d+cgvudT roMm1xZUV1/u/mLgu7HfBGf+X4HJw2+ITLD8lSksq9y9SMTvv2BP/OEQ4g2VBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TFeFe52Q; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TFeFe52Q; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: E5CB2AB9E X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: Mb04vzRAo1Mn Diego Rodriguez writes: > Where does this CDATA tag gets added automatically and how can I modify this behavior? Do you have auto-formatting on save configured in Emacs -- perhaps even via a starter kit like Doom Emacs, so that you're only half aware of it? And are you by any chance on macOS, which ships with the tidy program (HTML Tidy) by default? Or failing that, did you install it manually? To cut a long-story short: HTML auto-formatting on save runs tidy, which mangles the HTML in various ways, including this CDATA thing. This also happens in buffers with generated Org export output. I posted the long version to the mailing list in February: https://list.orgmode.org/CAEPTPEwOZjJLX1jyFmVR6jarsocyuD=Zf7HJ1i9G4SfWk4mUpQ@mail.gmail.com/ I suggested a patch, but it probably got buried in the noise: https://list.orgmode.org/20220228140750.75761-1-dafydd.lukes@gmail.com/ Instead, I see that another fix was merged yesterday (for different reasons AFAICS, but it should help with this auto-formatting issue too): https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d7a55bbd537314d2776b082bd92a1a08b3edc84e This should be enough for HTML exports, but two more tweaks are needed for ODT exports in ox-odt.el -- see my original patch. Or use https://github.com/kjambunathan/org-mode-ox-odt, which has already incorporated them. Tim Cross writes: > We probably should consider moving the existing ox-html to an ox-xhtml > and implementing a new ox-html that is based on html5. +1 on that, although obviously, I'm aware it's quite a chore. Best, David