-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests to warn when a table is unclosed
- Loading branch information
1 parent
3a5f9af
commit db09f67
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#Repro for github issue 1043 (unclosed table) | ||
|
||
Warns when a table is unclosed. | ||
$ ocamlc -bin-annot -c unclosed_light_table.mli | ||
|
||
$ odoc compile unclosed_light_table.cmti | ||
File "unclosed_light_table.mli", line 7, characters 1-1: | ||
Warning: Unclosed table '{t ...' or '{table ...' | ||
Suggestion: try to add '}' at the end of table content. | ||
|
||
$ ocamlc -bin-annot -c unclosed_heavy_table.mli | ||
|
||
$ odoc compile unclosed_heavy_table.cmti | ||
File "unclosed_heavy_table.mli", line 9, characters 1-1: | ||
Warning: Unclosed table '{t ...' or '{table ...' | ||
Suggestion: try to add '}' at the end of table content. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(** {table | ||
{tr | ||
{th Header 1} | ||
} | ||
{tr | ||
{td Cell 1} | ||
} | ||
*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
(** {t | ||
| Header 1 | | ||
| :------: | | ||
| centered | | ||
*) |