emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Damien Cassou <damien@cassou.me>
To: emacs-orgmode list <emacs-orgmode@gnu.org>
Cc: "Ihor Radchenko" <yantar92@posteo.net>,
	"András Simonyi" <andras.simonyi@gmail.com>
Subject: [BUG] [ox-odt] Added leading spaces
Date: Mon, 10 Apr 2023 21:43:58 +0200	[thread overview]
Message-ID: <87v8i3y135.fsf@cassou.me> (raw)

Hi,

in commit bb40848458512fc26ffa47d20807e3cd0211ccad (first released with
9.6), Ihor fixed a bug in ox-odt reported by András. This fix changed
the behavior of this code:

    (let* ((src "    a")
           (dest (org-odt-plain-text src nil)))
      (message
       "%S length-src=%d length-dest=%d"
       dest (length src) (length dest)))

Results are:

- before commit: "    a" length-src=5 length-dest=5
- after commit:  "        a" length-src=5 length-dest=9

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

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill


             reply	other threads:[~2023-04-10 19:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 19:43 Damien Cassou [this message]
2023-04-11 10:26 ` [BUG] [ox-odt] Added leading spaces Ihor Radchenko
2023-04-11 11:27   ` Damien Cassou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8i3y135.fsf@cassou.me \
    --to=damien@cassou.me \
    --cc=andras.simonyi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).