From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QPYGO2G+v2IH1gAAbAwnHQ (envelope-from ) for ; Sat, 02 Jul 2022 05:41:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uDfkOmG+v2IZQAEAauVa8A (envelope-from ) for ; Sat, 02 Jul 2022 05:41:21 +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 799182704 for ; Sat, 2 Jul 2022 05:41:21 +0200 (CEST) Received: from localhost ([::1]:33046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7U0W-0000JZ-Hr for larch@yhetil.org; Fri, 01 Jul 2022 23:41:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Tzk-0000Io-K7 for emacs-orgmode@gnu.org; Fri, 01 Jul 2022 23:40:32 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:41552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7Tzg-0004Gf-LC for emacs-orgmode@gnu.org; Fri, 01 Jul 2022 23:40:29 -0400 Received: by mail-pf1-x42a.google.com with SMTP id b2so4109652pfb.8 for ; Fri, 01 Jul 2022 20:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=gXYOzoLGwXGEvhYj8+HUm5skpErRRjlCKkZBhSkS6r4=; b=DK0xvmPoErvA3UXV00gxhuh+URcLOFjGQnHN5Plu4R18lDO/Vy5D6WNtWjF6uOOo8T DBhpO9cxCuPpgv9E6D0QjQZ4Xmyhr+GlkV/RjQYmA+VICdCWSguW+UPlI6E2pGOfWwZG XXRCjGhZeBCJJZSbzkYrngBjrcjYXoDUPW53oTKts54SH2Uuf2b2q+HI+f/OgIuXFfyC 5lYGFJ5PRBeL2TiRKE/QTBIhCWbmZK++hLrXzPFsxzM6bMciPoMiYyJjFAkpZHXlqL8a 1bxuZ8043Y5e6lswaLeDvklgVfDUzpNA3StGqsmdoWEVRdoHNF+vVs4upealAwLuQoDU b3/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=gXYOzoLGwXGEvhYj8+HUm5skpErRRjlCKkZBhSkS6r4=; b=pUe9rwm/XEsbY/M2Mcpurpw0C3BwaeFQDF7E8PEKo2MU9Tm0V3LkgrYbtC4Y2H0wGm ajBNqM6IBWPxYosD94Z9Qw11pLrCq3pRrSARyIM8sQk060U6HiBQqqNl6tdcda12Wpcg 0nZLMcbvNqZaU65gRIhs4hMumLKvWIuLIISzrfzU1WfJ1YiNZN9BoJ+0Pg7deR2l3QEy aCCssQUp1LHb57FX6LIAJWh1Bm84UJXsrIVMEJ0Tn8tWBhApFFRdP4icd2oZaXh1udpV ANbtLxtp2YwFpuODj8t1is5t9VePpFEoFPEHox00cktwBMECDo8wpY+GT764s9zuL/66 CYLQ== X-Gm-Message-State: AJIora94RvXYWgxTp4KFkP8UWCiUymiirGVW7xHL+wilrkjfZUrZ1SQy gF86rnYidw/3i5xHtTSt+nc= X-Google-Smtp-Source: AGRyM1vNiiejspxTfvLrVGW/okD4P/xA4Sa2np2lm7lAtTSkgIUI97L7LWQDJL6hh6SxjjUakWDbAQ== X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr23229435pfu.59.1656733226565; Fri, 01 Jul 2022 20:40:26 -0700 (PDT) Received: from localhost (61-216-157-182.hinet-ip.hinet.net. [61.216.157.182]) by smtp.gmail.com with ESMTPSA id s23-20020a170902a51700b001690d283f52sm16101243plq.158.2022.07.01.20.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 20:40:25 -0700 (PDT) From: Ihor Radchenko To: Matt Huszagh Cc: Emacs-Orgmode Subject: Re: [PATCH] Remove additional newline at end of results block In-Reply-To: References: Date: Sat, 02 Jul 2022 11:41:33 +0800 Message-ID: <87zghsi3ki.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656733281; 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=gXYOzoLGwXGEvhYj8+HUm5skpErRRjlCKkZBhSkS6r4=; b=hNIUYvtXdCn5MzaVi+UW1890pZCyl2+iS+m/qhrHOURvQ7uxwjcerayNA1gza+fGGpr+Oy 1EZ1LPqyu52jQDRU+IevTx3JmeoMV1a7Idhv3pBKB/FsatsE1ct10oR0aItHC/C8RqLSRO SH+aCKIBTNFYvCzg2/4Y0nZrcwHnqrtZ1K8UYtdR6YQueOap9IZ20xMrcdBAJXCBlsrdW/ zaDFskqMj825fLxNkFOPHuvqOCHzzQDhHAfNIP/JNrPieevbfv7k0x/aOYahsyZt8eWrFt HNhriUCIf3/cG3ZrkgXKuLhrIWvHj4HdwppQXU2jg4AJ4hNDOCSGSz9qXVp5uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656733281; a=rsa-sha256; cv=none; b=RcqlMY2fmVvM3OrjgA1dTNv/6I4fTY7OIFy/sZby9d9vjoIWal0ZW9fae34tomZqqkO6QJ vui/NTfldELvJBpEZgpUOrKTcT9kUqyNapWZWkz5AzOSFzhU5s4WMx7jm4XGeKlGCuEBVK JtdlKjchCfb+ZDe/wG2mzTt5nfSZKeGsbnfCZi8pae4dv+8PojQWWF36eIFZnkFBsg+7Rm c/PJMqM9bWHHrjgOmFDzBn5aYSE6l//okWZ0D9QOeyLpvk6+IxNTXrVrpIVTTfmHAiyez2 OeP0DvrQQVvvS0Uul5pe4+EPv03r8C47YZben4gwXLKWvwns3bl6AMEA7ih2MQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DK0xvmPo; 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: -1.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DK0xvmPo; 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: 799182704 X-Spam-Score: -1.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: xJgN+fuHINy5 Matt Huszagh writes: > + ;; We deliberately do not insert a newline here since there are > + ;; valid cases in which a user does not want a blank line between a > + ;; results block and the subsequent text. > (beginning-of-line 0) > (when hash (org-babel-hide-hash))) Thanks for the patch! And sorry for the late reply. Your explanation is quite confusing, but I think I managed to understand what you referred to: ------ We can write the simplest equation as #+begin_src latex :exports results \begin{equation} 1 + 1 = 2, \end{equation} #+end_src the paragraph should continue here. -------- will be exported as ------ We can write the simplest equation as \begin{equation} 1 + 1 = 2, \end{equation} the paragraph should continue here. ------ Note the extra empty line below equation environment. However, I am not confident if the proposed change is going to be safe for other uses of src blocks. I'd like to request other people who use export and source blocks extensively to try the patch and see if it breaks anything. Meanwhile, could you please reword the commit message and make it more concise and clear? Best, Ihor