GNU bug report logs - #37242
orgtbl-to-tsv drops empty cell

Previous Next

Package: emacs;

Reported by: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>

Date: Sat, 31 Aug 2019 07:32:02 UTC

Severity: normal

Done: Bastien <bzg <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
To: bzg <at> gnu.org
Cc: 37242 <at> debbugs.gnu.org, tkk <at> misasa.okayama-u.ac.jp
Subject: bug#37242: orgtbl-to-tsv drops empty cell
Date: Tue, 18 Feb 2020 16:13:26 +0900 (JST)
Dear Bastien,

>> When org-mode table is converted to tab delimited text using
>> orgtbl-to-tsv, empty cell is dropped out.  I think this is bug.
>>
>> GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29
>> runemacs -Q
>> (require 'org-table)
>> (orgtbl-to-tsv '(("aaa") ("bbb") ("") ("ddd")) nil) ; => "aaa\nbbb\nddd"
>> (orgtbl-to-tsv '(("aaa") ("bbb") ("") ("ddd")) '(:backend ascii)) ; => " aaa \n bbb \n     \n ddd "
> 
> (orgtbl-to-tsv '(("aaa") ("bbb") ("") ("ddd")) nil) returns the same
> output than orgtbl-to-csv, which is to ignore empty *lines* when the
> backend is not set ("nil" here).
> 
> I don't think this is a bug.
> 
> (orgtbl-to-tsv '(("aaa" "AAA") ("bbb" "BBB") ("" "") ("ddd" "DDD")) nil)
> returns something sensible.

What orgtbl-to-tsv/csv does is to convert delimiters.  In my opinion,
to drop out empty lines is overwork.

This comes from orgtbl-to-generic.  I cannot tell the behavior from
docstring.  If this is not a bug, I feel like this behavior is random
one.




This bug report was last modified 4 years and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.