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 SBErOoNunmPflAAAbAwnHQ (envelope-from ) for ; Sun, 18 Dec 2022 02:36:04 +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 CMkcOoNunmPpFgEA9RJhRA (envelope-from ) for ; Sun, 18 Dec 2022 02:36:03 +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 B86CB2AD59 for ; Sun, 18 Dec 2022 02:36:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6iaZ-0002AO-PO; Sat, 17 Dec 2022 20:35:39 -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 1p6iaY-00029x-4h for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 20:35:38 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6iaW-0006l5-Jy for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 20:35:37 -0500 Received: by mail-pg1-x536.google.com with SMTP id 36so4072008pgp.10 for ; Sat, 17 Dec 2022 17:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=kvV/JI4swFLTAIOnH39lBJCIVVSZvyg5O5syBl0qBgw=; b=muWE5yO04cLN7VXHF7wbkNoD8hu8qDTvcJ8uRC4LZ2FKQ6D1stxZBCtgxPZrXmlPZI My9d0F4//y3kSV13zZ60yTwCWZ+j8Mu3pO8YsOFLdkUl0aQMKekSLirjorFw5SkivqeO ITm8FDoN8v7AUAX6ESrrtpcWduNiZYRlkqxrNpG2feZQju2Dcp30Zurtstqmw2iY30Ux TaumKtqNPBcuO2SDiNt9KvxZnzQPAtAd/L8Kjj37ygiI+44bPc5eK0cSwZnO1KDjsjii vfZaMFk5ks7R68IXwuJiMRQIO2hJoJBlWEMyQ56zh7cKPSozU6bt9a2cgGHjCxS9qydj +noA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kvV/JI4swFLTAIOnH39lBJCIVVSZvyg5O5syBl0qBgw=; b=3/78jpBuzbdulQSOvwe6QluKRYjuzVQ/1mxLscotSvmqYUiWVbfgB7Reep3/cWHJVR otNOB3RDo0Y6hVCzt/dx745GyL2dYdJMc7QNCT9v75/FmsBSTjSZ5xYIgLnopfql6Lyw vRyFkp2lxJz3xY3SfCwspOxIl3ER1y7RjoFzhMtvGOmUx0e94Hu1DcFwwX5Wc6yRk5NG DJbsn/FyMfCGKXVNnfCy/9Q6V4YOuZa8MpW7av2bfmJRjsKgQ40+3et32B38JJlo2rIZ jVHPI//g3on0qPFoTXvkYfMd2U8uHODhtx7K5eovkxa0UXoGWeQ4j5AWDVrHpETjSZhN oBAw== X-Gm-Message-State: ANoB5pl90So4+Wx+vzNAe7TOck0okH8bOpGLY9pURFE9kqz3RcpbPw1S tYOCPFGwzyAjcjiepWnHqxnWXNvRu+I= X-Google-Smtp-Source: AA0mqf4CK3lzm7obsrGX6HMBHTWXroREWsMN5h9kTZLKDhI30qY3r391JGIwjInlrPeaDEalss2vsg== X-Received: by 2002:a05:6a00:1411:b0:574:a541:574a with SMTP id l17-20020a056a00141100b00574a541574amr42546103pfu.0.1671327335043; Sat, 17 Dec 2022 17:35:35 -0800 (PST) Received: from dingbat (203-173-24-107.dyn.iinet.net.au. [203.173.24.107]) by smtp.gmail.com with ESMTPSA id e4-20020a056a0000c400b005758d26fbf7sm3763306pfj.58.2022.12.17.17.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 17:35:34 -0800 (PST) References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> <87fsdhui6z.fsf@localhost> <86pmckvisp.fsf@gmail.com> <878rj8u2na.fsf@localhost> User-agent: mu4e 1.9.7; emacs 29.0.60 From: Tim Cross To: Tom Gillespie Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [Syntax discussion] Should we treat src blocks without LANG as paragraphs? (was: [BUG] ox-html does not export captions of source blocks without language) Date: Sun, 18 Dec 2022 12:33:23 +1100 In-reply-to: Message-ID: <86r0wxtrx8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x536.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, 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.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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=muWE5yO0; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671327363; a=rsa-sha256; cv=none; b=GvLsBr8BiTZ9jFxxDELjMk+CIcnWCHT7hgmHMaOxOdGPwbtZvyFQw84IrB4/b5ZxGNUGH5 jxwmCqwEft3j273N/KQvmlicqPsdiJ6YulRP8uYd4Q3RwfK5VkKUdPXASKm8ph8GJbE8LN 21tQKIY6nFtLIJZ/95JKNiXGqEMRsmDp8Xf54H1NxMkcDE5MX9+JJ/2pteoI4xmv4L1ISJ 063QHUEfWGnEoZjoxNc5q1O48Yx7FR1pxcY5Wl/sH9bfRr0OFsuHPKax5Yi+700vbBAvBG UfQ5+vDsIulmAuWNvfqsawimO8cyEB7lS/Wg/jFPsWZgONh+JE9EPv8nrXFJzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671327363; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kvV/JI4swFLTAIOnH39lBJCIVVSZvyg5O5syBl0qBgw=; b=YOwNJXeofxbFB9UrCJ1JzPFY3Xe+Wws7m/WLt6D/gZOpOOiJuaaQwl5HFJp83ygFz4YzOC +Sgq1EjgosbcB+w8iR5y1N99OUa0aZy+gh/Po/21ghQO2T/aFx1bSRj3exWaDOPgvUiRo9 B2p3aiPGgKbkqqbIzMNA7p/TxhrEhFhSgiLEv+Iax6EaIzJHjZLTUlnRgu09qGavS+7N2z VlXRZLMrB0AC2f+6GJo6F33ox+ZDxTFrYH/N5SJpx5Z9awTbDYsMDbAuiDnPTggE2A9DcV QG/4Fo/za+Ky5Unfcptz/Z8NA18UvoA2aUKwzbY1dJHxYQ1W0pzg6s7BL1W7GQ== X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=muWE5yO0; 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=gmail.com X-Migadu-Spam-Score: -5.98 X-Spam-Score: -5.98 X-Migadu-Queue-Id: B86CB2AD59 X-TUID: Lx3o0CQvEfs2 Tom Gillespie writes: > Treating src blocks missing a lang as paragraphs is > incorrect because according to the syntax spec they > are syntactically still blocks (greater or lesser depending > on your inclinations). > > I think the general principle we want to follow here is > that a block (or any entity in general) should not lose > its type because some part of its syntax is malformed > (I have made similar arguments about property drawers). > I think you might be right here. The big characteristic of source blocks and example blocks which make them different from paragraphs is the line breaks and indentation. If they are treated as paragraphs, won't this information be lost?