emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Vertical bars in org file break export to ics
@ 2019-05-30  6:57 michael
  2019-05-30  8:31 ` Fraga, Eric
  2019-05-30  9:04 ` Thomas Plass
  0 siblings, 2 replies; 4+ messages in thread
From: michael @ 2019-05-30  6:57 UTC (permalink / raw)
  To: emacs-orgmode

Hello list,

for the following *.org file running org-icalendar-export-to-ics will fail
with "Args out of range: [nil nil], 2".

* This is a test
  <2020-01-01 Mi>

| | |
| | | | |

The error also occurs without any personal configuration files loaded
using the following software versions:

- Org Version: latest from org-mode.org
- Emacs Version:26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8)
of 2019-04-12

(The reason i have these vertical bars in my files is that i tend to use
graphics created with Emacs artist mode for the purpose of network
documentation.)

Is it me or could this be an org-mode bug?

Thanks for your effort in advance!

Michael

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

* Re: Vertical bars in org file break export to ics
  2019-05-30  6:57 Vertical bars in org file break export to ics michael
@ 2019-05-30  8:31 ` Fraga, Eric
  2019-05-30  9:04 ` Thomas Plass
  1 sibling, 0 replies; 4+ messages in thread
From: Fraga, Eric @ 2019-05-30  8:31 UTC (permalink / raw)
  To: michael; +Cc: emacs-orgmode@gnu.org

On Thursday, 30 May 2019 at 08:57, michael wrote:
> (The reason i have these vertical bars in my files is that i tend to use
> graphics created with Emacs artist mode for the purpose of network
> documentation.)

Whether this is a bug or not, I will leave for others to
decide.  However, if you are going to use artist mode, I suggest putting
the lines within a src block with ditaa as the language.

  #+begin_src ditaa
  | | |
  | | | | | |
  #+end_src
  
which gives you the benefit of having C-c ' put you into artist mode
automatically.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.3-379-gff2bf2

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

* Re: Vertical bars in org file break export to ics
  2019-05-30  6:57 Vertical bars in org file break export to ics michael
  2019-05-30  8:31 ` Fraga, Eric
@ 2019-05-30  9:04 ` Thomas Plass
  2019-05-30 13:02   ` Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Plass @ 2019-05-30  9:04 UTC (permalink / raw)
  To: michael; +Cc: emacs-orgmode

Hello michael,

michael wrote at 08:57 on May 30, 2019:
: for the following *.org file running org-icalendar-export-to-ics will fail
: with "Args out of range: [nil nil], 2".
: 
: * This is a test
:   <2020-01-01 Mi>
: 
: | | |
: | | | | |

Org recognizes the last two lines as a genuine Org table (with two
rows), not as a collection of vertical bars having a completely
different meaning.

Making the export more robust by gracefully handling unequal
numbers of columns won't help you as I guess you wish to have the
vertical bars exported verbatim (which Org won't do).

Your best bet is probably to choose an unreserved character for use in
the graphics, possibly just before exporting.  Unicode code point
0xFFE4 FULLWIDTH BROKEN BAR looks similar.

Regards

Thomas

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

* Re: Vertical bars in org file break export to ics
  2019-05-30  9:04 ` Thomas Plass
@ 2019-05-30 13:02   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2019-05-30 13:02 UTC (permalink / raw)
  To: Thomas Plass; +Cc: emacs-orgmode, michael

Hello,

thunk2@arcor.de (Thomas Plass) writes:

> michael wrote at 08:57 on May 30, 2019:
> : for the following *.org file running org-icalendar-export-to-ics will fail
> : with "Args out of range: [nil nil], 2".
> : 
> : * This is a test
> :   <2020-01-01 Mi>
> : 
> : | | |
> : | | | | |
>
> Org recognizes the last two lines as a genuine Org table (with two
> rows), not as a collection of vertical bars having a completely
> different meaning.
>
> Making the export more robust by gracefully handling unequal
> numbers of columns won't help you as I guess you wish to have the
> vertical bars exported verbatim (which Org won't do).

You're right.

Meanwhile, I made export more robust in this case.

> Your best bet is probably to choose an unreserved character for use in
> the graphics, possibly just before exporting.  Unicode code point
> 0xFFE4 FULLWIDTH BROKEN BAR looks similar.

Or use ": ", i.e., fixed-width area, or \vert as the first bar.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2019-05-30 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30  6:57 Vertical bars in org file break export to ics michael
2019-05-30  8:31 ` Fraga, Eric
2019-05-30  9:04 ` Thomas Plass
2019-05-30 13:02   ` Nicolas Goaziou

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).