Skip to content
Browse files

explain myself

  • Loading branch information...
1 parent a4f2dca commit 10660f8194df6744d9db195d58c6605dd038452c @jnewland committed Dec 30, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/nagiosharder/cli.rb
View
1 lib/nagiosharder/cli.rb
@@ -148,6 +148,7 @@ def service_row(service)
]
end
+ # wraps text at the specified column, 80 by default
def wrap_text(txt, col = 80)
txt.gsub(/(.{1,#{col}})( +|$\n?)|(.{1,#{col}})/,
"\\1\\3\n")

0 comments on commit 10660f8

Please sign in to comment.
Something went wrong with that request. Please try again.