aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-04-08 14:47:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-04-08 14:48:29 -0700
commit20cd33e5a44810b68fed74da00f4f51eb2282147 (patch)
tree3ac87b5f2603ebeabae5df056863503d0268ac04 /test
parente227496d3a5d07df8183b8d986ea2aa36c90612c (diff)
downloadpandoc-20cd33e5a44810b68fed74da00f4f51eb2282147.tar.gz
Fix regression in grid tables for wide characters.
In the translation from String to Text, a char-width-sensitive splitAt' was dropped. This commit reinstates it. Closes #7214.
Diffstat (limited to 'test')
-rw-r--r--test/command/7214.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/command/7214.md b/test/command/7214.md
new file mode 100644
index 000000000..43bf9e4ca
--- /dev/null
+++ b/test/command/7214.md
@@ -0,0 +1,28 @@
+```
+% pandoc
++------------+----------+------------------+
+|日本語 | の文字列 | words in english |
++------------+----------+------------------+
+|abc defghij | def | xyz |
++------------+----------+------------------+
+^D
+<table style="width:60%;">
+<colgroup>
+<col style="width: 18%" />
+<col style="width: 15%" />
+<col style="width: 26%" />
+</colgroup>
+<tbody>
+<tr class="odd">
+<td>日本語</td>
+<td>の文字列</td>
+<td>words in english</td>
+</tr>
+<tr class="even">
+<td>abc defghij</td>
+<td>def</td>
+<td>xyz</td>
+</tr>
+</tbody>
+</table>
+```