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 ms9.migadu.com with LMTPS id 8MMcGz5nNGTmnwAASxT56A (envelope-from ) for ; Mon, 10 Apr 2023 21:45:02 +0200 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 wLMgGz5nNGTmJQAA9RJhRA (envelope-from ) for ; Mon, 10 Apr 2023 21:45:02 +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 C761913C56 for ; Mon, 10 Apr 2023 21:45:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plxR1-0007YZ-TS; Mon, 10 Apr 2023 15:44:15 -0400 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 1plxQz-0007YJ-QA for emacs-orgmode@gnu.org; Mon, 10 Apr 2023 15:44:13 -0400 Received: from mail.choca.pics ([2001:910:1410:500::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plxQx-0004jc-Vg for emacs-orgmode@gnu.org; Mon, 10 Apr 2023 15:44:13 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 762F7180888D8; Mon, 10 Apr 2023 21:44:00 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id dCExPu-kc-G7; Mon, 10 Apr 2023 21:44:00 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id E3086180888D9; Mon, 10 Apr 2023 21:43:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 8DmsWrnz4sOL; Mon, 10 Apr 2023 21:43:59 +0200 (CEST) Received: from localhost (91.60.75.86.rev.sfr.net [86.75.60.91]) by mail.choca.pics (Postfix) with ESMTPSA id 89B5A180888D8; Mon, 10 Apr 2023 21:43:59 +0200 (CEST) From: Damien Cassou To: emacs-orgmode list Cc: Ihor Radchenko , =?utf-8?Q?Andr=C3=A1s_Simonyi?= Subject: [BUG] [ox-odt] Added leading spaces Date: Mon, 10 Apr 2023 21:43:58 +0200 Message-ID: <87v8i3y135.fsf@cassou.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:910:1410:500::1; envelope-from=damien@cassou.me; helo=mail.choca.pics 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, 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-Seal: i=1; s=key1; d=yhetil.org; t=1681155902; a=rsa-sha256; cv=none; b=MulTk/MnGbYiAHajhsCkB8OFpbhbDGSMKYb2vA9LFptpEyH8HzbAcD+BPoTCVIeUtOU6Wf yUBEoibvc9SNqJBvnoG13tWqT4UnqJD2mFoWHs8mdRY9K7rVaIb/6Jgx7G0t+xlqSdY/VM OblHY9xdGJ7bPynjGxAtWmLmt8aReXzWY6zh+0YSa2aPT89ASIUYJL/PVHZXhIO8xQX09G l8AWjLqUv4TW+ElPAL+nrNxamOAMOtmWPtVbbANUJhLCrgKqvMlV1DotDQPI0pNDHAD34U yFxqsQ4smNiq3x4SkkPIXXUG55IL3oeZfZ5PwxDL93kdKVR60r2ZjK7CxJV7aQ== 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681155902; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Wqn2Dym5No+07PwPPHq5VyGfngdZxvlWSNtR6GW+/Pc=; b=Vvb7vuSFgTh8dJcBRQFxa0ssPurFyMINKC0KuipUwVz23YNmPbUy0b05mF+oyyuf41dAXD pQA8wLYjugQAFBwNgDxhLHPvrpoZfHe64ZAkj8uu7cNaH4YKujM9p6E90cAz5K6L8Xa0dh WjpI2fXzf4nqpHQ7Z+qzJN1R6KkzOvCklQ1VSFUpOT+rkBf9q38iVNPGYMgvkHsRsZR4io HHezJ658PgtwnF1NEBW9BvjG3/r/eV5ZkjvLG1WPTPpf3iFvzRuUlh33WZgmVfLNg+oETA YJ8WK1xStlsD7ky6VVoXcoHfdg9DEKr2He/5LJApYi6pQdqZ6hlG9xWuJWhnhQ== X-Migadu-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com 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-Spam-Score: -3.02 X-Migadu-Queue-Id: C761913C56 X-TUID: yqmeI2tdszD+ Hi, in commit bb40848458512fc26ffa47d20807e3cd0211ccad (first released with 9.6), Ihor fixed a bug in ox-odt reported by Andr=C3=A1s. This fix changed the behavior of this code: (let* ((src " a") (dest (org-odt-plain-text src nil))) (message "%S length-src=3D%d length-dest=3D%d" dest (length src) (length dest))) Results are: - before commit: " a" length-src=3D5 length-dest=3D5 - after commit: " a" length-src=3D5 length-dest=3D9 After the commit, the result of `org-odt-plain-text` contains 4 more leading spaces. Is that the expected behavior or is that a bug? Best --=20 Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill