summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean-Noël Avila <jn.avila@free.fr>2020-05-10 12:52:43 +0200
committerGitHub <noreply@github.com>2020-05-10 04:52:43 -0600
commit54bebf91020a6b4e7fb9aeeb061f753b976246c3 (patch)
tree8d5202cc30f15e8efc806b6f0989f9e3982547a0 /lib
parent11aaeabed5935cdb7e65b65eb44b44210f039b87 (diff)
resolves #3645 fix escaping ellipsis at start of line (PR #3644)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/converter/manpage.rb2
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('&#8217;', '\(cq'). # right single quotation mark
gsub('&#8220;', '\(lq'). # left double quotation mark
gsub('&#8221;', '\(rq'). # right double quotation mark
- gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis
gsub('&#8592;', '\(<-'). # leftwards arrow
gsub('&#8594;', '\(->'). # rightwards arrow
gsub('&#8656;', '\(lA'). # leftwards double arrow