aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/GroffChar.hs
AgeCommit message (Collapse)AuthorFilesLines
2018-10-18Groff escaping changes.John MacFarlane1-15/+16
- `--ascii` is now turned on automatically for man output, for portability. All man output will be escaped to ASCII. - In T.P.Writers.Groff, `escapeChar`, `escapeString`, and `escapeCode` now take a boolean parameter that selects ascii-only output. This is used by the Ms writer for `--ascii`, instead of doing an extra pass after writing the document. - In ms output without `--ascii`, unicode is used whenever possible (e.g. for double quotes). - A few escapes are changed: e.g. `\[rs]` instead of `\\` for backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-18Add Text.Pandoc.GroffChar.John MacFarlane1-0/+418
This will hold common escaping data for groff characters.