From efbb329f1a81a778fd853bffee0414c87a1133b3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 18 Oct 2018 10:21:34 -0700 Subject: Groff escaping changes. - `--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. --- test/command/4550.md | 2 +- test/command/ascii.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/command') diff --git a/test/command/4550.md b/test/command/4550.md index 45ed21a00..bf3afce5b 100644 --- a/test/command/4550.md +++ b/test/command/4550.md @@ -3,5 +3,5 @@ A ‘simple’ example ^D .LP -A \[oq]simple\[cq] example +A ‘simple’ example ``` diff --git a/test/command/ascii.md b/test/command/ascii.md index 523baa46c..4956ae14e 100644 --- a/test/command/ascii.md +++ b/test/command/ascii.md @@ -17,7 +17,7 @@ pandoc -t man --ascii äéıå ^D .PP -\[u00E4]\[u00E9]\[u0131]\[u00E5] +\[:a]\['e]\[.i]\[oa] ``` ``` @@ -25,7 +25,7 @@ pandoc -t ms --ascii äéıå ^D .LP -\[u00E4]\[u00E9]\[u0131]\[u00E5] +\[:a]\['e]\[.i]\[oa] ``` ``` -- cgit v1.2.3