aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorEricFromCanada2018-02-01 17:17:09 -0500
committerEricFromCanada2018-02-01 17:17:09 -0500
commit91246c25535e80b484bcc5a7a11c5d58fd76b962 (patch)
tree72b6eb184afd8409feed48c315f8c8738f0f8c69 /Library/Homebrew/dev-cmd
parent1d2b4ed321c55df609d69e3505e3d37ad28c6fb8 (diff)
downloadbrew-91246c25535e80b484bcc5a7a11c5d58fd76b962.tar.bz2
docs: fix double backticks appearing in HTML manpage
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/man.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb
index 3fbdd2601..f06c89863 100644
--- a/Library/Homebrew/dev-cmd/man.rb
+++ b/Library/Homebrew/dev-cmd/man.rb
@@ -108,7 +108,7 @@ module Homebrew
ronn.write markup
ronn.close_write
ronn_output = ronn.read
- ronn_output.gsub!(%r{</?var>}, "`") if format_flag == "--markdown"
+ ronn_output.gsub!(%r{</var>`(?=[.!?,;:]?\s)}, "").gsub!(%r{</?var>}, "`") if format_flag == "--markdown"
target.atomic_write ronn_output
end
end