From 1f69162ffd5f16367d2de0b62c9a80f4d3b9bc59 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 15 Nov 2019 23:09:53 -0800 Subject: RST writer: Improve spacing for tables with no width information. If a simple table would be too wide, we use a grid table. The code for generating grid tables has been adjusted to give more intelligent column widths when widths aren't given. (This also affects the markdown writer.) Closes #5899. --- test/command/5128.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'test/command/5128.md') diff --git a/test/command/5128.md b/test/command/5128.md index 2ab051c04..35866547e 100644 --- a/test/command/5128.md +++ b/test/command/5128.md @@ -1,5 +1,5 @@ ``` -pandoc -f org -t rst +pandoc -f org -t rst --columns=78 | Option | Meaning | |--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | =<= | Left alignment, additional characters are added to the right (default for string). | @@ -7,12 +7,20 @@ pandoc -f org -t rst | =^= | Centered , the same amount of characters is added to the left and the right. | | === | Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "=>=". This option is only available for numbers (default for numbers). | ^D -====== ============================================================================================================================================================================================================ -Option Meaning -====== ============================================================================================================================================================================================================ -``<`` Left alignment, additional characters are added to the right (default for string). -``>`` Right alignment, additional characters are added to the left. -``^`` Centered , the same amount of characters is added to the left and the right. -``=`` Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "``>``". This option is only available for numbers (default for numbers). -====== ============================================================================================================================================================================================================ ++--------+------------------------------------------------------------------+ +| Option | Meaning | ++========+==================================================================+ +| ``<`` | Left alignment, additional characters are added to the right | +| | (default for string). | ++--------+------------------------------------------------------------------+ +| ``>`` | Right alignment, additional characters are added to the left. | ++--------+------------------------------------------------------------------+ +| ``^`` | Centered , the same amount of characters is added to the left | +| | and the right. | ++--------+------------------------------------------------------------------+ +| ``=`` | Padding. If a numeric value is printed with a sign, then | +| | additional characters are added after the sign. Otherwise it | +| | behaves like "``>``". This option is only available for numbers | +| | (default for numbers). | ++--------+------------------------------------------------------------------+ ``` -- cgit v1.2.3