From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2LGKLMJcJWRREAEASxT56A (envelope-from ) for ; Thu, 30 Mar 2023 11:56:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KAFLLMJcJWSP0QAAauVa8A (envelope-from ) for ; Thu, 30 Mar 2023 11:56:18 +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 0146024FAC for ; Thu, 30 Mar 2023 11:56:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1php0I-0007Pp-3L; Thu, 30 Mar 2023 05:55:34 -0400 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 1php0F-0007Pa-U8 for emacs-orgmode@gnu.org; Thu, 30 Mar 2023 05:55:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1php0D-0005rZ-RW for emacs-orgmode@gnu.org; Thu, 30 Mar 2023 05:55:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DC3132402F5 for ; Thu, 30 Mar 2023 11:55:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680170127; bh=Tap85P9iHmpI9ELGzAMWG7jObvdz6ikwFPqpsnYkBHI=; h=From:To:Cc:Subject:Date:From; b=ctvLFDBYBGemlXwoxHqo15nmdP5DvHAC0Wobu7cv7UX+Qe3ir26cuTrMQb9BPHGsI Fd9Snxd5ofaEtLA11YJCs/Kkic7K3TLilzGwzZNPXK1Mh5Dh5nvAmBQ7ZKr662TemU SysyBCCEzkfOL6AhHDd8L/97ATpF93wwt8I95qrmikzJlnRTLWT49J0EUeLA2Fq6Qh y7opNVe8mZsfsZWYkDSx6I3jX7lDup9wg7v9ffgkMuCWbmC+O2XaFE7Dr5u7UlejNr hscN9OcLhK2xr+RgA6QyT7gtRsE+9PcYE0ojC9fbddfZslh0pnCfCTQfGuaIUQiL52 FzeMY7vlXG4gg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PnJgz21ndz6tvm; Thu, 30 Mar 2023 11:55:27 +0200 (CEST) From: Ihor Radchenko To: Cooper Oscarfono Cc: emacs-orgmode@gnu.org Subject: Re: org-publish producing element tags instead of honoring what is specified in :html-divs In-Reply-To: <08517f41-7998-68cb-d544-60cc36392567@baaa.sh> References: <08517f41-7998-68cb-d544-60cc36392567@baaa.sh> Date: Thu, 30 Mar 2023 09:57:22 +0000 Message-ID: <87h6u2ef3x.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H2=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ctvLFDBY; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680170178; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7dwV6dPkwwaEeCiN9nitPHlkA4QqM0D39PbX1eDdF88=; b=t+VLD/x7YZfIHsixb8Ug/YsEPh76s58CY94ZPu4MDUW0B5Uo06adyWVRCqC9caxqYW0Mqz w8MCEYaODfUXJVrJuodIWArcOInC3Au12g3yHCvnbpgeAOCjZdB8NojuAC+FqJbXKQyZHT E8qcULJsn1cU3cmhHvN3Y7PcEMvYNccjNG+GQYN1/TktXBxgdDSNbnPiQS+krMDhKgFz9r XH9skzJnoAdUjfy6DUu+EiozL2LkFUT0J8euGFNEfjB6DOTr0ih0JxEJhEvbehn3AhJV3X 9FiBmteF//HHZv15/lHd8ziO2OmAhaK8cyD5TksLtO0tcjSXacRKmw7d3A63+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680170178; a=rsa-sha256; cv=none; b=bBQzz1iBLBt41rdEhSRlfIk3EIY2Juc+LrUaGFsJnwoB0yZZiEn0Rr83a0UV16lq520MKm oBwH3F0BsGUCymLXgO+5VpB2ne4bwrSpzTzgj/73QG6b7c3FiL8HoFtsSXnW2qJvLbuZYf F5hg/NWgQYPzqEAZNaHCgPfNAunVwt+EURIm47qATJCZYrXAXkalxORsMTd5t3tQXbpYxR qU6kG94jJiyILNmrJP92H4IJNdCY2QupFcApovofmi9ePpSWRGaoZMipvCKFDtmggILMff K/D5ofegIxwwEOUe7SXekQFFGHehcI/4pi1DU7yC2uTZq26dBYgkgETGFT6XPA== X-Migadu-Spam-Score: -6.23 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: 0146024FAC Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ctvLFDBY; 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-Spam-Score: -6.23 X-TUID: jao/dzeVI6Pd Cooper Oscarfono writes: > In attempting to convert the divs generated for preamble, content, and=20 > postamble, by specifying, what I believe to be the appropriate setting=20 > within org-publish-project-alist : > > > =C2=A0=C2=A0 :html-divs '((preamble "header" :id "preamble") > =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (co= ntent "main" :id "content") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (postamble "footer" :id "postamble")) > > > Instead of generating
, id=3D"content">..., and
...
, as= =20 > expected, I am generating: ..., id=3D"nil" class=3D"content">..., and class=3D"status">..., respectively. Looks like double quoting. You likely have something like (setq org-publish-project-alist '(... :html-divs '(...)) ...). Because of nested "'", the actual value of :html-divs is set to (quote (...)) and Org is not able to get preamble/contents/postamble part from there. To illustrate try the following (setq test '(:a '((preamble "a" "b")))) (assq 'preamble (plist-get test :a)) and then the same but without double quoting (setq test '(:a ((preamble "a" "b")))) (assq 'preamble (plist-get test :a)) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at