lib/stepmod/utils/cleaner.rb in stepmod-utils-0.3.12 vs lib/stepmod/utils/cleaner.rb in stepmod-utils-0.3.13
- old
+ new
@@ -2,10 +2,12 @@
module Stepmod
module Utils
class Cleaner < ReverseAdoc::Cleaner
def tidy(string)
- super.gsub(/^ +/, "")
+ super
+ .gsub(/^ +/, "")
+ .gsub(/\*\s([,.])/, '*\1') # remove space between * and comma or dot.
end
end
end
end