From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SHnaE4F70WUPjAAA62LTzQ:P1 (envelope-from ) for ; Sun, 18 Feb 2024 04:37:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SHnaE4F70WUPjAAA62LTzQ (envelope-from ) for ; Sun, 18 Feb 2024 04:37:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=quanticle.net header.s=fm1 header.b=VnlNhaZa; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=hNGRg8PC; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708227457; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kxRetJQGI82hVLET/wCvKSejrGeLY7AKeVhcjUKnJf8=; b=aDW2nwk0xW0T55fUr+DJLCZ0i6vloZMxdtIZpZT6lB0aHjobb9uajOdTc4tr4lZYZ/GcPn Jt9/dO5Z+d1yu7jN4FLC5OqjgDEdKozl8G/0qOe+rkgLwJQ+K5X93Ou5owrQG5Hv/3cP96 c083JcXpO3we3CAcK4dMg9elvUYPglU60zI8AP99kT8xmf/MJf+WAkgTpQTVLKOeXio4Ez ApnzmwQ2qxlvwa+Hoo2XR4EIqZf0i9Ld6lUn35hQNpJtfZUUD6j8cyB8HGAhGoLVmPidZ0 AVl5KBFVdslTRc0PgOaHsO4ekBAuGkqk604go9FrLtCuX3giykOR6EyS4pKlzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=quanticle.net header.s=fm1 header.b=VnlNhaZa; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=hNGRg8PC; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708227457; a=rsa-sha256; cv=none; b=G5dRK/k9nyXdlLDvQol+yw5wa197+s+e9uE01Q6wrkV292tlxW0DOl3O2tp1pCfSsevKN7 azwLcB7uDpN+kTYc+EigTHRy+mIyC4nKpmOix3SuO4p8E/l6iAdy0KikaiClTF9H5yIkba v8JyT3KSDF/gJGEIrhHuL0inks1QD6NdvhXdj1HUbatQlsTh22v9o6ljMnHWUzZMaUldwt BfiGrjcF2kVZ8HTps/dTZ3s83G6z1/2ZkK43iRVJkR+wl+HTWNv7dxlzH5O4GcBAYgGr7r mGS/SVwP2EXF+XZksDFBb+N1crEYYa2uKFKmXKFyvVT4p6uk6CrBO84Z6hetBQ== 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 62C1019B8C for ; Sun, 18 Feb 2024 04:37:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbXyq-00033B-0H; Sat, 17 Feb 2024 22:36:40 -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 1rbXym-00032r-VX for emacs-orgmode@gnu.org; Sat, 17 Feb 2024 22:36:36 -0500 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbXyl-0007DD-57 for emacs-orgmode@gnu.org; Sat, 17 Feb 2024 22:36:36 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 7191911400AF for ; Sat, 17 Feb 2024 22:36:32 -0500 (EST) Received: from imap44 ([10.202.2.94]) by compute2.internal (MEProxy); Sat, 17 Feb 2024 22:36:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quanticle.net; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1708227392; x=1708313792; bh=kxRetJQGI82hVLET/wCvKSejrGeLY7AK eVhcjUKnJf8=; b=VnlNhaZaX0vvUoaOcM5TLExCiM0ibJeuToX9kZPC9f8tv1F2 qYeHtB8lHyrzmK/Ge8dQssB+Wn61HRyZzbtNPCOdid9RcFbQ0aDGBxzJlfUnFsMR 2SK7jrLdPsm22kt/Gn+kgFgbYrWaIe3ECCXGzZz9LF+IunBKMDa0cCfPQ7Ita2N6 Rg/NLdb4Qggrbz32KzTIX/3SoHZJ4YGkygE3Cgf3cOhjkm+Imc5jYTU5/Cp6rUTp SK7voFSRkzGUQJTgIXydV1bMMTFQVxuwIhMx/Y1PYUWku+nJyj4aePU/8uYBlJvS jTxv6nskv+imMTIaNfiMLfUUE8fIqSL1q8LmNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1708227392; x=1708313792; bh=kxRetJQGI82hVLET/wCvKSejrGeLY7AKeVh cjUKnJf8=; b=hNGRg8PCMGwl9lQjLgal27quXsXP+53yEJqGoYchfTkfj3pkNXR xA1/D9wcggP9uzxtQMXxa1oG+D698BwQtqrJCmwMeokZaOkc6MidUOh8hCis+Sdu rfjkKoPNJn0QFrk3dZJphNJ2Ry+yHwcQcHcmS9jxN8IZoC5SfCzND6qZDTkzSQAI mna1wBgMXyZqmObRrGHCTMI+bbwpCJsuLKk0YcPmv0FeuuZhvuH+bGBNCFaRjHdm 4GadVEy/HYRUYqXakRGxeaa/zVm4gc5O7E2coXHyc0AkDv/+TCOlrGK3jD8YZPlU agJze1JZbwEUHz4MEVMsHzw/VU+HDwuCu4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdftohhhihhtucfrrghtnhgrihhkfdcuoehquhgrnhhtihgtlhgv sehquhgrnhhtihgtlhgvrdhnvghtqeenucggtffrrghtthgvrhhnpedugfetjeffueegve evhfeifeejjedvueeuveehhfdvheeivddvfeffkeegfeelteenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepqhhurghnthhitghlvgesqhhurghnthhitghlvgdrnhgvth X-ME-Proxy: Feedback-ID: i0db1457f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2EDC936A0076; Sat, 17 Feb 2024 22:36:32 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 MIME-Version: 1.0 Message-Id: Date: Sat, 17 Feb 2024 21:36:10 -0600 From: "Rohit Patnaik" To: emacs-orgmode@gnu.org Subject: Extraneous blank lines in when attempting to export org tables Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.153; envelope-from=quanticle@quanticle.net; helo=fhigh2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.55 X-Spam-Score: -6.55 X-Migadu-Queue-Id: 62C1019B8C X-TUID: P/CijHa+ELs+ Hello, I'm currently working on an exporter that will allow org-mode to export to PMWiki markdown (https://github.com/quanticle/ox-pmwiki/), and I'm running into a problem when writing the export code to handle tables. When exporting table rows, I'm getting extraneous blank lines between table rows. My export code for tables is as follows: #+begin_src elisp (defun org-pmwiki-table-cell (table-cell contents info) "Transcode a TABLE-CELL from org to pmwiki format. CONTENTS is nil. INFO is a plist used as a communications channel." (let ((cell-alignment (org-export-table-cell-alignment table-cell info))) (cond ((eq cell-alignment 'left) (format "%s ||" contents)) ((eq cell-alignment 'right) (format " %s||" contents)) ((eq cell-alignment 'center) (format " %s ||" contents))))) (defun org-pmwiki-table-row (table-row contents info) "Transcode a TABLE-ROW element from org to pmwiki format. CONTENTS is the contents of the row. INFO is a plist used as a communications channel." (format "||%s" contents)) (defun org-pmwiki-table (table contents info) "Transcode a TABLE from org to pmwiki format. TABLE is the table element itself. CONTENTS is the contents of the table. INFO is a plist holding contextual information." contents) #+end_src When I run this code on the following table: #+begin_src org | Col 1 | Col 2 | Col 3 | | | | | | left aligned cell | centered cell | right aligned cell | #+end_src I expect to see the following output: #+begin_example ||Col 1 || Col 2 || Col 3|| ||left aligned cell || centered cell || right aligned cell|| #+end_example However, the actual output generated by the code is: #+begin_example ||Col 1 || Col 2 || Col 3|| ||left aligned cell || centered cell || right aligned cell|| #+end_example The contents of each cell are formatted correctly, but there's an additional newline between the two rows. How do I prevent this newline from being added? Thanks, Rohit Patnaik