Permalink
Browse files

GH-4: ruby 1.8.7 lacks negative lookbehind regexps

  • Loading branch information...
1 parent 1551b32 commit c87dab11cdb60198fc1faf1b7b2f6ee5ff0f057d @sunaku committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/md2man/roff.rb
View
@@ -19,7 +19,7 @@ def postprocess document
super.strip.
# ensure that spaces after URLs appear properly
- gsub(/(?<=^\.[UM]E) \s/, "\n").
+ gsub(/(^\.[UM]E) \s/, "\\1\n").
# squeeze blank lines to prevent double-spaced output
gsub(/^\n/, '')

0 comments on commit c87dab1

Please sign in to comment.