Login  Register

Smaller tables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Smaller tables

pwillard
Some of my tables are rather long and needing to add an extra <cr><blank line> for everyline seems excessively "white-spacey".  

Would it be possible to just use a another "|" at the end, just before a <cr>, to indicate an 'end of a table row'?
Ted
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Smaller tables

Ted
Could you give us a snippet of your long table?

Then explain how adding some symbol at the end of a table row would make your table shorter?
- Ted @TedAtCIS
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Smaller tables

pwillard
Here is my current table:

Pastebin Link

The table becomes quite tall just to make sure new rows are created... and I know that a trailing "|" will create a new cell on the current row... but if the only thing between the | and the end of the line is whitespace or no-space, why not have it be equal to New Row marker?

If you need to make SURE an empty cell got created at the end of a line... you might use ||<cr> to mark it.

Yeah, I'm just spit-balling because the extra empty line makes my tables taller.

Ted
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Smaller tables

Ted
You don't need to double space between the rows. As long as your lines end with CRLF or LF.

Check your text editor. I have mine set to UTF-8 and CRLF

This works:

[width="75%",align="center"]
[cols="30,30,40"]
|===
|Part     | Type      | Information  
|2N2222A  | NPN       | BJT 600-800 mA            
|2N7000   | N-Channel | MOSFET 300 mA            
|2N3904   | NPN       | BJT 200 mA                
|TIP120   | NPN       | BJT Darlington Pair 5 Amp
|220 Ohm  | Resistor  | 1/4 Watt                  
|1000 Ohm | Resistor  | 1/4 Watt
|===
- Ted @TedAtCIS
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Smaller tables

pwillard
Note:  This works... but differs from the official documentation.

http://asciidoctor.org/docs/user-manual/#tables
Ted
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Smaller tables

Ted
pwillard wrote
This works... but differs from the official documentation.
http://asciidoctor.org/docs/user-manual/#tables
I've created a PR https://github.com/asciidoctor/asciidoctor.org/pull/653 to update the documentation.


- Ted @TedAtCIS