diff options
| author | Jean-Noël Avila <jn.avila@free.fr> | 2020-05-10 12:52:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 04:52:43 -0600 |
| commit | 54bebf91020a6b4e7fb9aeeb061f753b976246c3 (patch) | |
| tree | 8d5202cc30f15e8efc806b6f0989f9e3982547a0 /lib | |
| parent | 11aaeabed5935cdb7e65b65eb44b44210f039b87 (diff) | |
resolves #3645 fix escaping ellipsis at start of line (PR #3644)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/converter/manpage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb index 0ad2e7b3..2beee41a 100644 --- a/lib/asciidoctor/converter/manpage.rb +++ b/lib/asciidoctor/converter/manpage.rb @@ -704,6 +704,7 @@ allbox tab(:);' end str = str. gsub(LiteralBackslashRx) { %[#{$1}#{'\\(rs' * $2.length}] }. # literal backslash (not a troff escape sequence) + gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis gsub(LeadingPeriodRx, '\\\&.'). # leading . is used in troff for macro call or other formatting; replace with \&. # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#$1"#$2") : %(.#$1"#$2"#{LF}#{rest}) }. @@ -721,7 +722,6 @@ allbox tab(:);' gsub('’', '\(cq'). # right single quotation mark gsub('“', '\(lq'). # left double quotation mark gsub('”', '\(rq'). # right double quotation mark - gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis gsub('←', '\(<-'). # leftwards arrow gsub('→', '\(->'). # rightwards arrow gsub('⇐', '\(lA'). # leftwards double arrow |
