From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sGkGCJDpmmNVUgAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 10:32:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wFQQCJDpmmOx/wAA9RJhRA (envelope-from ) for ; Thu, 15 Dec 2022 10:32:00 +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 D8CF43E17C for ; Thu, 15 Dec 2022 10:31:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5kaK-00066R-TE; Thu, 15 Dec 2022 04:31:24 -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 1p5kaJ-00066J-Bj for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 04:31:23 -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 1p5kaH-0007fx-EQ for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 04:31:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DA7E8240026 for ; Thu, 15 Dec 2022 10:31:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671096678; bh=MzGAwbFtrfULFzDFqYdhBbABqKkrT1VNx0NQp+0oPow=; h=From:To:Cc:Subject:Date:From; b=k8+YnWtiAfSWbdcPfSDq0kc409CmsAM0BeWcHou9ZiRAQqBRGsKXD8KtVAPBYoFSV 0whJAnrImoKfjlcVgdHqnGfz09dmNRPjPRChF9B7aTLtDRRTCkindXjo4sRWMfjfvE FIv1aOlz06o/CPqhTo1PZAw7mGsQdWLoT2zhaw3w/JIsC5Immi9LcJ6s4QZJMtByqV HkK5mPnExxr9p4XMlrkaFncSBV7/Z2oyo0cMNkXaYtJiF+v3rzBAQEsORuultaiV+f rXzxGODMB9OcQ/MK01OjgPyVNs7xhPEHio7M6bkmVe2w4CGorhoxJTs2JBj1/2tYnU LE9ioMN4DfE3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NXn6Y6Nygz9rxS; Thu, 15 Dec 2022 10:31:17 +0100 (CET) From: Ihor Radchenko To: Johan =?utf-8?Q?Bolmsj=C3=B6?= Cc: emacs-orgmode@gnu.org Subject: [Syntax discussion] Should we treat src blocks without LANG as paragraphs? (was: [BUG] ox-html does not export captions of source blocks without language) In-Reply-To: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> Date: Thu, 15 Dec 2022 09:31:16 +0000 Message-ID: <87fsdhui6z.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.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671096719; 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=MzGAwbFtrfULFzDFqYdhBbABqKkrT1VNx0NQp+0oPow=; b=gu2+zHP6W/xh9vlhJcSO9Oo4CtCJw87K+/mPvoQ9bW0uL6gZAB7VtupjK4nv1CB2RztpzF XMXRLhR8gYvk8BdFydCc4kCLZM8vTZEIF0FmnSsIuHSL32gOQVYoqAkZN+RVApfIBHdnLV qdtPODCu8CWu6wZK75CYrdkQOM1pGdbbKlYC2oM5pc+2q+mfdgB3lwg4/RahC/SVan7xX4 8EfERQ6uHaE9R7F+n0gnNMkR7+CwvBA+ZlZXUwI4iqRhDSZA1fcetwxlJTivmGQmf6la1Q f78fEAaciZfL+xZ6TbB0Bqi9cBO29tgEEaV97HF23P91lL4QgXJ5JajWhXOYog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k8+YnWti; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671096719; a=rsa-sha256; cv=none; b=eMbw9GxKkCx+ioSsqbSrYBRVwX6L4zWDLfrc4Q+Utd9u0qe5UB7gKZDwypkRrRsHvct28n a6Vr57kDhnzVRof06wdJSFn1x917UhE8N6lmsHO/GGN1/+3ttOn/o3Ir7Fnf5Wp8tcX4af 3Mm9GOk3USlVKN368HwsHZxYGnvJY3HLkYwjmYNmzyknOUh0lnevAIxStG/bl8XOxZwY/g yYSsjfV7X3D+52ioscCwJBHYj6bEHaC3Orj0zVNlWdSEVlpVYPWUputPlfYmne2t95FrnS LLEunKCqpVr1YqPpKk4QSjqFXPMFGfkZyLsXTeHRcoqizOwq/jtReXeZDLCDhg== X-Spam-Score: -6.39 X-Migadu-Queue-Id: D8CF43E17C X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k8+YnWti; dmarc=pass (policy=none) header.from=posteo.net; 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: -6.39 X-TUID: 7WsRNN+EP01x Johan Bolmsj=C3=B6 writes: > #+caption: Caption 1 > #+begin_src > foo bar baz > #+end_src There is an inconsistency here between Org parser and https://orgmode.org/worg/org-syntax.html + manual. The actual parser does allow empty lang in src blocks, setting :lang element property to nil. Should we stop doing this and treat such src blocks as paragraphs? Or should we allow empty lang and instead adapt the exporters to treat empty lang correctly? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at