mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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:
committed by
John MacFarlane
parent
2ddf2257dc
commit
e5845f33ad
@@ -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** |
|
||||
+-------+--------------------------------------+
|
||||
```
|
||||
Reference in New Issue
Block a user