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 ms5.migadu.com with LMTPS id cHCCFeRImmMI6QAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 23:06:28 +0100 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 UE1mFeRImmOoIQAAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 23:06:28 +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 36B2B252C6 for ; Wed, 14 Dec 2022 23:06:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Zsf-0007cz-AA; Wed, 14 Dec 2022 17:05:37 -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 1p5Zse-0007bv-3A for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 17:05:36 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Zsc-00089T-8D for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 17:05:35 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3DCC15C0053 for ; Wed, 14 Dec 2022 17:05:32 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute3.internal (MEProxy); Wed, 14 Dec 2022 17:05:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitmaster.se; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1671055532; x= 1671141932; bh=BXUTcnSwHiWEKxMoNs7mLKBB2mhUQolL8RNfnioVDEA=; b=c NK/mVB1ukF6ep5rzS3CJLt5IZtv2DnqQqJBPASpsxi8BIQ10bODOeAQRn7UuQXjg xqLiQMeTihjywP2kNc28qO+ssubQC9PEECWtyqEvDeAaUxImK5MmjoUz1/L50UWG x/SVQi6cOU9p+VGgK9uU5V+Vo0ne2nWRN/w0ZmlOIb2Mj+emuYhptUMRE2JrmIlo nPJ1E5SWjz99XxEIYrIR1Pw8cHK1k4BG9xEs7vL4MSI8fSPtH5dITSVTfmEuD7dU rqjKqTqtABnRikmjlNaBLALQAS45HpDwDOa/hScnP3crt8gV6dGQk65aua5Zmy4u s8557TD8N4onNKs2zPA0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1671055532; x=1671141932; bh=B XUTcnSwHiWEKxMoNs7mLKBB2mhUQolL8RNfnioVDEA=; b=bIqmYXao29cKtvvYx 4Zi7WTUs4lbFcbokriJdm6SfaIfuS3H9molsCkGQ87r6zky76dYh0uw0svrIBxxQ ZeKPSjo6mzwVS2jC7oMnldINo15mo3rfSCsCeTwRDiZ3qQYBzY1BNGt5knObjDQ4 NCDYhDgqj+6Swd18hmmP2oaPaQe96W8amWPD9PfnG6ZTeX3GkT7+qlBmsGmyBKzj 1FR/YW/tlsTTwXVviobDMMDfP98mS/G9JeFcaVQ5p1egV/Tad+F2Jkwez6YtfxRw YB8hQ2NbxILAPJIt+Iec3m5t4r9AtVLiSnVRip8AmtT/og7YDdGIRJZenAiJLXt8 66t/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefgdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomheplfhohhgrnhcuueholhhmshhjnpcuoehorhhgqdhmohgu vgesjhhohhgrnhdrsghithhmrghsthgvrhdrshgvqeenucggtffrrghtthgvrhhnpeettd ffkeffgffgleekuefhtdefkedtgfeiiefgtdefffdvffffieekhffhffettdenucffohhm rghinhepohhrghhmohguvgdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehorhhgqdhmohguvgesjhhohhgrnhdrsghithhmrghsthgv rhdrshgv X-ME-Proxy: Feedback-ID: i5be1467e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0FB602D40074; Wed, 14 Dec 2022 17:05:32 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: <8d77438d-cde2-489d-9982-7c09b520b6c0@app.fastmail.com> In-Reply-To: References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> Date: Wed, 14 Dec 2022 23:05:11 +0100 From: =?UTF-8?Q?Johan_Bolmsj=C3=B6?= To: emacs-orgmode@gnu.org Subject: Re: [BUG] ox-html does not export captions of source blocks without language Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=66.111.4.26; envelope-from=org-mode@johan.bitmaster.se; helo=out2-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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=1671055588; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=BXUTcnSwHiWEKxMoNs7mLKBB2mhUQolL8RNfnioVDEA=; b=uumpBif4m6/hHvxdXsD03IjaD3gKC4bkLfd6lWaFrJO4fPyeyr+QUXrnqk9pRYUMyF6UXs uKrl9dQvTLCBc7Pa0wWZ7xyt0qkPCctaqVpx5S1EqhhFc3uog68wtfuuV61hb4L8LmFUGx 02YTR6boe6SAlw4Nn9K/LVdQCszg5gZTry9om7E7LWb2xDgjLYFfFphk4UI4xS1BdU3WpE 21iih0+f5MtI9rCgY+W2yUu2ibRJE4IXPvI+KlAZUnkAthAD1COsKAwU9E6N73XcMdrs84 0WgmQuvYqEw4GtSytt2eemzNpDdPLbBDiV9CHYGvz74fFlv3qbQrbcvDJVYIIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bitmaster.se header.s=fm1 header.b="c NK/mVB"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bIqmYXao; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671055588; a=rsa-sha256; cv=none; b=UkwFdlsIqExmSbxKFQI9+SFbe/EsPnD1ktTOjFdrE80reKCq8BFqo3wGb+hFGlBzXV562h /31FFBpBcjTlg7eBmuwSCNH93KqgH2/QfIl50+hwxXO4BjQl//nlDkGPh39NptXDMouoZp ctuVdeOuGVt9L0TpayViwx76l+9XQ7YA7J7VEiQl0BcK5AuCjVODCaOaLat5ib7ea6FW/b 07bUAf9Si08MMOLU+7kyAqSd7dcmPOlVHdhKGEJzermDimVP5jEhwPnzfMYcW2C3Yw3wIO QXpQVOqO4d8RIrM5EPC4JSaN7pZ+vPUhPqgBSDX1luFzFkrmJcrTlk8cMsi/6g== X-Migadu-Spam-Score: 0.74 X-Spam-Score: 0.74 X-Migadu-Queue-Id: 36B2B252C6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bitmaster.se header.s=fm1 header.b="c NK/mVB"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bIqmYXao; 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=none X-TUID: HHd3xfzVZi90 On Wed, Dec 14, 2022, at 22:51, Kaushal Modi wrote: > On Wed, Dec 14, 2022, 4:44 PM Johan Bolmsj=C3=B6 wrote: >> The caption "Caption 1" is not exported by ox-html in the following >> source block. >>=20 >> #+caption: Caption 1 >> #+begin_src >> foo bar baz >> #+end_src >=20 > The begin_src block always requires a "language" as far as I know. If = you don't want to specify a language, you can use #+begin_example instea= d.=20 >=20 > You can even do "#+begin_src text". >=20 > It's a different issue as to why you are seeing a different behavior b= etween the two exporters.=20 Okay, the manual confirms that the language is mandatory. https://orgmode.org/manual/Structure-of-Code-Blocks.html "#+begin_src text" exports the caption with both ox-html and ox-ascii. "#+begin_example" export the caption with neither ox-html nor ox-ascii. So the only discrepancy is how the two exporters handles this non-confor= ming source block.