John MacFarlane
e4cca4cf67
Roff readers: better parsing of groups.
...
We now allow groups where the closing `\\}` isn't at the
beginning of a line.
Closes #5410 .
2019-09-04 09:24:42 -07:00
Albert Krewinkel
37a82b0b11
Add missing copyright notices and remove license boilerplate ( #5112 )
...
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 .
2019-02-04 13:52:31 -08:00
Yan Pashkovsky
43a0734f62
table tests
2018-11-02 22:42:51 -07:00
John MacFarlane
3305a018bc
Roff reader: properly handle unknown backslash escapes.
...
They are treated as regular characters, according to groff 7.
Cloess #5034 .
2018-10-30 15:54:29 -07:00
John MacFarlane
8d55dc10cd
Roff tokenizer: better handling of escapes.
2018-10-28 21:37:57 -07:00
John MacFarlane
22755a35b7
Roff tokenizer: revamped font parsing using escapeArg.
...
Add support for \C'...' escapes.
2018-10-28 18:06:34 -07:00
John MacFarlane
0327226d4c
Man reader: don't parse \[ul] as unicode escape.
2018-10-22 12:05:34 -07:00
John MacFarlane
2b7a541dd0
Man reader: Fixed handling of nested fonts.
...
Closes #4978 .
2018-10-20 22:41:39 -07:00
John MacFarlane
f202279902
Man reader: Fix .B, .I, .BR, etc.
2018-10-20 16:40:44 -07:00
John MacFarlane
a9fc71118f
Man reader: major restructuring, support macros.
...
- 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-20 15:57:34 -07:00
John MacFarlane
62566c8182
Man reader: handle shift in list style.
...
Closes #4987 .
2018-10-20 09:30:37 -07:00
John MacFarlane
7dd06e96d7
Man reader: Improved header parsing.
...
- .SH should be level 1, .SS level 2.
- The header title can come on the next line.
2018-10-19 23:27:04 -07:00
John MacFarlane
f5704fac97
Man reader: properly handle multi-block list items.
...
Closes #4985 .
2018-10-19 22:54:05 -07:00
John MacFarlane
790ada8946
Man reader: Added more tests for escapes.
...
Closes #4983 .
2018-10-19 15:36:43 -07:00
John MacFarlane
56c4a11f97
Man reader: minor improvements.
...
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-19 15:17:53 -07:00
John MacFarlane
e6772360f6
More man reader test updates.
2018-10-19 14:59:11 -07:00
John MacFarlane
400e87df1d
Update man reader tests.
2018-10-18 23:54:13 -07:00
Yan Pas
7741cdbf04
added old-style test
2018-10-17 00:21:52 +03:00
Yan Pas
ce27bf9a02
builders
2018-10-16 03:12:06 +03:00
Yan Pas
3fed62611e
tests, commented debug functions
2018-10-14 00:57:15 +03:00
Yan Pas
1ce067fc2a
tests, parsing fixes
2018-05-23 00:20:30 +03:00
Yan Pas
ad19166bc3
fix build and tests
2018-05-09 20:40:37 +03:00
Yan Pas
c1617565fc
basic manfile parsing
2018-05-09 03:24:45 +03:00
Yan Pas
fd3676a568
initial
2018-02-25 03:34:17 +03:00