From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iG+QHV89wGA7xgAAgWs5BA (envelope-from ) for ; Wed, 09 Jun 2021 06:02:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8G3jGF89wGAVHQAAbx9fmQ (envelope-from ) for ; Wed, 09 Jun 2021 04:02:39 +0000 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 F3E2B25027 for ; Wed, 9 Jun 2021 06:02:38 +0200 (CEST) Received: from localhost ([::1]:59690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqpQK-0004hA-DG for larch@yhetil.org; Wed, 09 Jun 2021 00:02:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqpPl-0004gW-T4 for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 00:02:02 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:41795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqpPk-0003Su-5c for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 00:02:01 -0400 Received: by mail-wm1-x32e.google.com with SMTP id l11-20020a05600c4f0bb029017a7cd488f5so3256530wmq.0 for ; Tue, 08 Jun 2021 21:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cPDinSBZnf/1Ks23A6+vNpdGTNsVFKYPGNsfNMY7moE=; b=FuiJpqZx+ra1T9ESiAl84ZGDYuAxG6EFp1fJaK/zHfc+We2sm6GXm7gNGPT0y8Zp21 6Ul9339o4agEgkWcTTw/WIWjzSipsJEVnq+XrzMnqByP02sTMdD4h8nLF7BV0QZTTWAa q5nkGKyfF5QLUrHg5IJELWGPbj360E2jdaOjzdLChoEdCTQbw7fQXFCa3xy6ayllsVxU hr1d9zm0zAslYNvzncltQxVxjZoJzLPr3F+sSlUNmP1GJDLfXJJFWlqBbNFwHVD9Gj4X 8Xn80CtA0Q93f7dV0GINEnp89Nez3X13L79Ho2BevXBxiAjr9M+bYm8yFpw1+AkLQgZq cgdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cPDinSBZnf/1Ks23A6+vNpdGTNsVFKYPGNsfNMY7moE=; b=ZfCwO2jF4of8Zh/i1gP9mk8Y5q+p1QG4SqiWsaPSvAtTaBjHzdB5ytIukhbYGZN6OR rarUTqh/KYArR1Ea0Wb0CeW9wI9v6h6lVj3IZlXlfRP2WM6izTwgn9dOFwEz3DWP8tPY 9PxILlG4oNdau9cp7/3I7gK7pmw/GzwsHhm7r8YCnLTsAiI2Kod36pxklFMY/zRq9KBm W/cnoyLU3v/6gBLU9CLGMgzgXert49F91OHeox0O1bwkRrDlb3cJnoYjpn6L698sHr+0 eNnbsNmZ+PPxGP3tkxAykTkV1hr2/FRoKkZyEjxA3Q9m/E0qK3sBTJjYyJ5cmiaKEr3w Gs2w== X-Gm-Message-State: AOAM530hZUV86EYJmgPJdgsIWY9NMUvmqhvxuaByeidTZDR2W3eyaTpg rYhRGBlCYR1wC0boq7LjQby+KMbp7sZuxwbQI/A= X-Google-Smtp-Source: ABdhPJyOb6Sd0FgMI1ybWy+FMJXAaFPoSfbOv8nuzP6X6JJ9z9KxQHKFOs9iobqCNUJQjO0CrgaAya3+kYv0EWH0rEc= X-Received: by 2002:a7b:cb01:: with SMTP id u1mr7605036wmj.188.1623211318751; Tue, 08 Jun 2021 21:01:58 -0700 (PDT) MIME-Version: 1.0 References: <87h7jhus7k.fsf@spx.local.example> <87wnsc2gp2.fsf@localhost> <5780a7fb-17b5-6bde-f3a1-ef741af57734@nicksavage.ca> In-Reply-To: From: Kaushal Modi Date: Wed, 9 Jun 2021 00:01:23 -0400 Message-ID: Subject: Re: babel output seems to drop anything before % (in session) To: Nick Savage Content-Type: multipart/alternative; boundary="0000000000000cb3ef05c44d566d" Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=kaushal.modi@gmail.com; helo=mail-wm1-x32e.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, HTML_MESSAGE=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Emanuel Berg via General discussions about Org-mode." , Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623211359; 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=cPDinSBZnf/1Ks23A6+vNpdGTNsVFKYPGNsfNMY7moE=; b=UR5lffPKDrOe6pnG6VRnXXTEDtPwdSPzL4EZQmQQlivaKdcpT7dgYeegxQZy1Mw2J/iead kM5nl5ldBwNM0HZctZFlvdkWaHWWoIen7PsQoGCsTt7yNuZnXE01qDyxEqRt26DdGBm6r/ cly/J2XzLMWb3F9aiHD3VnT4YvawPQXv73ODKtECMQtQypDgXrHEw4VTqscTLu3QyimTVr 2oeVuv4ONq4QL/3Z1WuOWXrIZY3zag/RxNn2GHnsOCwH9GuwDXiwujcGP2/S15BEZFcO5b tWqS1YUG6TS7FxudhcLwPZ1bmMfo3Cp1prEZLLNrxmxkEfKRhNKMg+I1F0XIhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623211359; a=rsa-sha256; cv=none; b=rSDk99wXMcvXJBP18943LkccQ17mu/NfeFDYvnBcTXXkRrqbr0gPDiYN/dKoTO6I9YfTNG L6pzaUTI7cxprpYmAw48APDjeQnMLRL+TEzTnQ1CoG1ZGa54pkp5Dg46+5crbAMIcyAASq +TGOhCHwvJy8qDhJPWYmfDfFwI65rxeO++TNrHOKuk37XcrtWY3d7D5798rh3jxx2kr0VC qLmE8v6tTxIdEUtXdz272HytOaqMO7u05AJIfOakbv+1Km/U3X2kX37IJc/Z/qU/xdbYXW 2s02J+tLgXE6h7ygqv87QOQMwnueoFuo0KN7ZKXI9h5JNoEEYG6gK6BLGEYcSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=FuiJpqZx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=FuiJpqZx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: F3E2B25027 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: BKB23JebAz4S --0000000000000cb3ef05c44d566d Content-Type: text/plain; charset="UTF-8" Hi Nick, On Tue, Jun 8, 2021 at 11:54 PM Kaushal Modi wrote: > > Thanks! I tried out your patch and it does fix the truncation of results > output. Though, it retains the shell prompt in the first eval block and > removes it only from the second eval block onwards. > I have one more feedback about the patch. I see that now indentation is stripped away from ob-shell results. I am documenting git commands in ob-shell. In the terminal, `git log' outputs: ===== commit ba72672c499af8b713437d8c05eb5979969954dd (HEAD -> main) Author: Foo Bar Date: Tue Jun 8 23:56:48 2021 -0400 first commit ===== But in shell src block results, I see that that indentation is gone: ===== #+begin_src shell git log #+end_src #+RESULTS: : : commit 34924761f042eab59567ec150a73c730ab2c929c (HEAD -> main) : Author: Foo Bar : Date: Tue Jun 8 23:56:48 2021 -0400 : : first commit ===== Kaushal Modi --0000000000000cb3ef05c44d566d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nick,

On Tue, Jun 8, 2021 at 11:54 PM Ka= ushal Modi <kaushal.modi@gmail= .com> wrote:

=
Thanks! I tried out your patch and it does fix the truncation of resul= ts output. Though, it retains the shell prompt in the first eval block and = removes it only from the second eval block onwards.

I have one more feedback about the patch. I see = that now indentation is stripped away from ob-shell results.

=
I am documenting git commands in ob-shell.

<= div>In the terminal, `git log' outputs:

=3D=3D= =3D=3D=3D
commit ba72672c499af8b713437d8c05eb5979969954dd (HEAD -= > main)
Author: Foo Bar <= foo.bar@fakeemail.com>
Date: =C2=A0 Tue Jun 8 23:56:48 2021 -0400=

=C2=A0 =C2=A0 first commit
=3D=3D=3D=3D=3D

=
But in shell src block results, I see that that indentation is g= one:

=3D=3D=3D=3D=3D
#+begin_src shellgit log
#+end_src

#+RESULTS:
:
: commit 34924761f042eab59= 567ec150a73c730ab2c929c (HEAD -> main)
: Author: Foo Bar <foo.bar@fakeemail.com>
: Date: = =C2=A0 Tue Jun 8 23:56:48 2021 -0400
:
: first commit
=3D= =3D=3D=3D=3D



Kaushal= Modi
--0000000000000cb3ef05c44d566d--