all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] [ox-odt] Added leading spaces
@ 2023-04-10 19:43 Damien Cassou
  2023-04-11 10:26 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Cassou @ 2023-04-10 19:43 UTC (permalink / raw)
  To: emacs-orgmode list; +Cc: Ihor Radchenko, András Simonyi

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] [ox-odt] Added leading spaces
  2023-04-10 19:43 [BUG] [ox-odt] Added leading spaces Damien Cassou
@ 2023-04-11 10:26 ` Ihor Radchenko
  2023-04-11 11:27   ` Damien Cassou
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-04-11 10:26 UTC (permalink / raw)
  To: Damien Cassou; +Cc: emacs-orgmode list, András Simonyi

Damien Cassou <damien@cassou.me> writes:

> 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?

Thanks for reporting!
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=60ce29dc4

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] [ox-odt] Added leading spaces
  2023-04-11 10:26 ` Ihor Radchenko
@ 2023-04-11 11:27   ` Damien Cassou
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Cassou @ 2023-04-11 11:27 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode list, András Simonyi

Ihor Radchenko <yantar92@posteo.net> writes:
> Fixed, on bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=60ce29dc4

thank you very much.

-- 
Damien Cassou

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-11 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-10 19:43 [BUG] [ox-odt] Added leading spaces Damien Cassou
2023-04-11 10:26 ` Ihor Radchenko
2023-04-11 11:27   ` Damien Cassou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.