aboutsummaryrefslogtreecommitdiffstats
path: root/test/parser_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-12 07:45:29 +0200
committerLoïc Hoguin <[email protected]>2018-06-12 18:35:54 +0200
commit9224a497d79acbb8ce5690bf8dd9e19855e50586 (patch)
treee6a188f6e58aa421efc60bf73fda02d1cdbf0cce /test/parser_SUITE.erl
parentff3a48cd25a671f456614e79f1c05d77f4ca08ff (diff)
downloadasciideck-9224a497d79acbb8ce5690bf8dd9e19855e50586.tar.gz
asciideck-9224a497d79acbb8ce5690bf8dd9e19855e50586.tar.bz2
asciideck-9224a497d79acbb8ce5690bf8dd9e19855e50586.zip
Fix table cells containing blocks
Diffstat (limited to 'test/parser_SUITE.erl')
-rw-r--r--test/parser_SUITE.erl19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/parser_SUITE.erl b/test/parser_SUITE.erl
index e5eda88..f3b4b27 100644
--- a/test/parser_SUITE.erl
+++ b/test/parser_SUITE.erl
@@ -404,22 +404,21 @@ comment_line(_) ->
%% Tables. (23)
table(_) ->
- %% @todo I think I read somewhere that paragraphs are not allowed in cells... Double check.
[{table, _, [
{row, _, [
- {cell, _, <<"1">>, _},
- {cell, _, <<"2">>, _},
- {cell, _, <<"A">>, _}
+ {cell, _, [{paragraph, _, <<"1">>, _}], _},
+ {cell, _, [{paragraph, _, <<"2">>, _}], _},
+ {cell, _, [{paragraph, _, <<"A">>, _}], _}
], _},
{row, _, [
- {cell, _, <<"3">>, _},
- {cell, _, <<"4">>, _},
- {cell, _, <<"B">>, _}
+ {cell, _, [{paragraph, _, <<"3">>, _}], _},
+ {cell, _, [{paragraph, _, <<"4">>, _}], _},
+ {cell, _, [{paragraph, _, <<"B">>, _}], _}
], _},
{row, _, [
- {cell, _, <<"5">>, _},
- {cell, _, <<"6">>, _},
- {cell, _, <<"C">>, _}
+ {cell, _, [{paragraph, _, <<"5">>, _}], _},
+ {cell, _, [{paragraph, _, <<"6">>, _}], _},
+ {cell, _, [{paragraph, _, <<"C">>, _}], _}
], _}
], _}]= parse(
"|=======\n"