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 sMd4I8MIr2HJPQAAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 08:09:55 +0100 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 sCljHcMIr2GvGwAAbx9fmQ (envelope-from ) for ; Tue, 07 Dec 2021 07:09:55 +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 130FB1B3C3 for ; Tue, 7 Dec 2021 08:09:54 +0100 (CET) Received: from localhost ([::1]:53426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muUbo-0005h0-Gt for larch@yhetil.org; Tue, 07 Dec 2021 02:09:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUbC-0005gM-8J for emacs-orgmode@gnu.org; Tue, 07 Dec 2021 02:09:14 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:32875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUb9-0000Qz-Tu for emacs-orgmode@gnu.org; Tue, 07 Dec 2021 02:09:13 -0500 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1muUb7-0006CK-5t; Tue, 07 Dec 2021 08:09:09 +0100 Received: from 130-133-144-203.mna.fu-berlin.de ([130.133.144.203] helo=hornfels) by inpost2.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1muUb6-003Ud1-UT; Tue, 07 Dec 2021 08:09:09 +0100 From: "Loris Bennett" To: Org Mode List Subject: Re: Handling conversion of fields with spaces to tables References: <87y24x95oy.fsf@hornfels.zedat.fu-berlin.de> <87wnkhhkbz.fsf@ucl.ac.uk> <87lf0x94k3.fsf@hornfels.zedat.fu-berlin.de> <87o85thipu.fsf@ucl.ac.uk> Date: Tue, 07 Dec 2021 08:09:08 +0100 In-Reply-To: <87o85thipu.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 6 Dec 2021 15:10:53 +0000") Message-ID: <87fsr4zyaz.fsf@hornfels.zedat.fu-berlin.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Original-Sender: loris.bennett@fu-berlin.de X-Originating-IP: 130.133.144.203 Received-SPF: pass client-ip=130.133.4.66; envelope-from=loris@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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" 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=1638860995; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=qRuSrgdo1jgumRB8Etc4rKRe3FzldWuNdgOdpZbm3u0=; b=hoDBbLCl3iNv0mUNhI4zy+91o1AXpIBjwApyNc/BtanQ+vQR8rojMdQjPymsoG6A+BQfcQ 9Y+NP6OsZmlqrT7H1sizD0igny0QR2LrlLe4YzCCjjJ+1owhYxUvEs9MdjPZShRnmM45ms NzYBZOwZHNGixI9C0mwJlTqs3QMsNpRvU90uPZ2ezZ95lhyAhZWTCbqPJPSvA7a7dhedAu /+IKiS+QF+PywdmJt/KjeedYwZsS/1UdJLYWatFP9RYLKq94l4yDS7OoV4tUKC2Hq7VLvc Y+fzFeSKdklcy+c7FZ8ZEnfG6ZqrvGvlq4SzdU1xBYBslzgzNmFSr412vArTyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638860995; a=rsa-sha256; cv=none; b=OKsV8s8KNZCs9CYrckuHEqLPcsSBcSfl8KPF+vuzu+j+DOZ7wyc/56ZgfIMvbXfKzvRm/0 NxA+T8EBkTk7sxIsZ67OjtuPQFn8tqK5qOyFvmAN2IMPO5Yy4woTt6kQ2dDXF1cZ+es/OP afrrCG+vIPo/ulhndREkwV8fa8cjkHVyfLaPjGTOlzKLXLFr5i3lCLX4cMcrN1/xit0fUV 1cljg/bmX0VN9Us0xA7KP6pnxTdBrUPUgaNyQCmJmmsfp1mDmuij1cpXfEvC4tkI4P4MTe OyygaBQi39amwYrJ/q3BRyz9KmGvuzADVV8uKxKQHaKJw8rdSTdW6IAy9UvBTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 130FB1B3C3 X-Spam-Score: -3.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: tmp0KT0BFRI5 Eric S Fraga writes: > On Monday, 6 Dec 2021 at 15:43, Loris Bennett wrote: >> That's solves the problem of the field being split, but gives me the new >> problem that the output is no longer a table :-) > > Ah, yes, sorry: you need to have each line of the output start with a > "|" as well. If your external script can do that, it should work. > > As in: > > #+BEGIN_SRC sh :results output raw > echo "|marie|Curie|123" > echo "|louis|De Broglie|456" > #+END_SRC > > #+RESULTS: > | marie | Curie | 123 | > | louis | De Broglie | 456 | For what ever reason, the external script has an option to add "|" at the end of each line, but not at the beginning. However, I can just pipe the output through 'sed' to get one at the beginning, so all is well. Thanks for the help! Cheers, Loris -- This signature is currently under construction.