lib/md2man/roff.rb in md2man-2.1.0 vs lib/md2man/roff.rb in md2man-2.1.1

- old
+ new

@@ -209,20 +209,20 @@ end private def escape text, literally - if text then text. - # escape backslashes so that they appear in the printable output - gsub('\\', literally ? '\&\&' : '\\[rs]'). + text. - # escape soft-hyphens so that they appear in the printable output - gsub('-', '\\-'). + # escape backslashes so that they appear in the printable output + gsub('\\', literally ? '\&\&' : '\\[rs]'). - # escape line-beginning control characters (period and single quote) - # by prefixing a non-printable, zero-width glyph (backslash ampersand) - gsub(/^(?=[.'])/, '\\\\&') - end + # escape soft-hyphens so that they appear in the printable output + gsub('-', '\\-'). + + # escape line-beginning control characters (period and single quote) + # by prefixing a non-printable, zero-width glyph (backslash ampersand) + gsub(/^(?=[.'])/, '\\\\&') end def remove_leading_pp text text.sub(/\A\n\.PP\n/, '') end