aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Man.hs
AgeCommit message (Collapse)AuthorFilesLines
2020-04-15Use the new builders, modify readers to preserve empty headersdespresc1-7/+15
The Builder.simpleTable now only adds a row to the TableHead when the given header row is not null. This uncovered an inconsistency in the readers: some would unconditionally emit a header filled with empty cells, even if the header was not present. Now every reader has the conditional behaviour. Only the XWiki writer depended on the header row being always present; it now pads its head as necessary.
2020-04-15Adapt to the newest Table type, fix some previous adaptation issuesdespresc1-2/+6
- Writers.Native is now adapted to the new Table type. - Inline captions should now be conditionally wrapped in a Plain, not a Para block. - The toLegacyTable function now lives in Writers.Shared.
2020-04-15Implement the new Table typedespresc1-2/+2
2020-03-13Update copyright year (#6186)Albert Krewinkel1-1/+1
* Update copyright year * Copyright: add notes for Lua and Jira modules
2020-03-05Fix man reader test for previous change.John MacFarlane1-1/+1
2020-02-07Apply linter suggestions. Add fix_spacing to lint target in Makefile.John MacFarlane1-15/+15
2019-09-04Roff readers: better parsing of groups.John MacFarlane1-1/+1
We now allow groups where the closing `\\}` isn't at the beginning of a line. Closes #5410.
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel1-0/+12
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2018-11-02table testsYan Pashkovsky1-0/+11
2018-10-30Roff reader: properly handle unknown backslash escapes.John MacFarlane1-0/+2
They are treated as regular characters, according to groff 7. Cloess #5034.
2018-10-28Roff tokenizer: better handling of escapes.John MacFarlane1-2/+2
2018-10-28Roff tokenizer: revamped font parsing using escapeArg.John MacFarlane1-1/+1
Add support for \C'...' escapes.
2018-10-22Man reader: don't parse \[ul] as unicode escape.John MacFarlane1-1/+1
2018-10-20Man reader: Fixed handling of nested fonts.John MacFarlane1-0/+7
Closes #4978.
2018-10-20Man reader: Fix .B, .I, .BR, etc.John MacFarlane1-1/+4
2018-10-20Man reader: major restructuring, support macros.John MacFarlane1-4/+4
- Improved support for custom macro definitions. - LinePart type has been added. RoffStr is now one constructor of LinePart (the other being MacroArg). - MComment has lost its argument. - MEndMacro has been removed. - MStr has been removed (we now simply use LinePart). - Macros now store a list of tokens. - Each macro argument is a [LinePart], instead of a LinePart. - .BR now behaves as documented in man (and doesn't create a link).
2018-10-20Man reader: handle shift in list style.John MacFarlane1-6/+10
Closes #4987.
2018-10-19Man reader: Improved header parsing.John MacFarlane1-2/+2
- .SH should be level 1, .SS level 2. - The header title can come on the next line.
2018-10-19Man reader: properly handle multi-block list items.John MacFarlane1-4/+4
Closes #4985.
2018-10-19Man reader: Added more tests for escapes.John MacFarlane1-6/+11
Closes #4983.
2018-10-19Man reader: minor improvements.John MacFarlane1-2/+8
use `trimInlines` for Para content to avoid leading and trailing spaces. Fix handling of \" in middle of line. Add more tests for escapes.
2018-10-19More man reader test updates.John MacFarlane1-6/+6
2018-10-18Update man reader tests.John MacFarlane1-2/+2
2018-10-17added old-style testYan Pas1-1/+1
2018-10-16buildersYan Pas1-4/+4
2018-10-14tests, commented debug functionsYan Pas1-19/+58
2018-05-23tests, parsing fixesYan Pas1-3/+15
2018-05-09fix build and testsYan Pas1-2/+3
2018-05-09basic manfile parsingYan Pas1-4/+19
2018-02-25initialYan Pas1-0/+16