Don't wrap lines in grid tables when --wrap=none (#4320)

* Annotate gridTable code with comments and abstract small functions
* Don't wrap lines in tables when `--wrap=none`.  Instead, expand cells, even if
   it results in cells that don't respect relative widths or surpass page column width.
* This change affects RST, Markdown, and Haddock writers.
This commit is contained in:
Francesco Occhipinti
2018-03-17 20:31:43 -07:00
committed by John MacFarlane
parent 2ddf2257dc
commit e5845f33ad
2 changed files with 45 additions and 12 deletions
+15
View File
@@ -0,0 +1,15 @@
```
% pandoc -f native -t rst --wrap=none
[Table [] [AlignDefault,AlignDefault] [0.47368421052631576,0.5263157894736842]
[[Plain [Str "one"]]
,[Plain [Str "two"]]]
[[[Plain [Str "ports"]]
,[BlockQuote
[Para [Strong [Str "thisIsGoingToBeTooLongAnyway"]]]]]]]
^D
+-------+--------------------------------------+
| one | two |
+=======+======================================+
| ports | **thisIsGoingToBeTooLongAnyway** |
+-------+--------------------------------------+
```