Login  Register

Re: Table include macro - tab-delimited files

Posted by mojavelinux on Mar 14, 2017; 4:19am
URL: https://discuss.asciidoctor.org/Table-include-macro-tab-delimited-files-tp5374p5375.html

Tables can, in fact, use tabs as a delimiter. (The name of the attribute is separator). The only caveat is that you must specify the value using a literal tab character, not an escape code.

I put the example in a gist so as not to lose the formatting (and to demonstrate it in action)

https://gist.github.com/mojavelinux/8d1728830d3997a8998f01bb8fa8c25a

I'll add an enhancement to Asciidoctor to allow the separator to be specified using the escape code, \t.

[separator=\t]

Cheers,

-Dan


On Mon, Mar 13, 2017 at 3:44 PM, brianrepko [via Asciidoctor :: Discussion] <[hidden email]> wrote:
My understanding is that one cannot include a tab-delimited file as table data.
I've tried changing separator - and tried an include1 macro as well since include converts tabs to spaces.

Am I missing something? Tables cannot use tabs as a delimiter?

-brian


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Table-include-macro-tab-delimited-files-tp5374.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux