]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
change wrap in motd
authorPeter Palfrader <peter@palfrader.org>
Wed, 8 Jan 2014 15:17:39 +0000 (16:17 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 8 Jan 2014 15:17:58 +0000 (16:17 +0100)
modules/motd/templates/motd.erb

index 0838f581a3ec229a6ab6bcd6b9e12841ffc044c0..4afe1d3743a691eabea8e43024f1767524b86445 100644 (file)
@@ -13,7 +13,7 @@ this machine you agree to abide by the Debian Machines Usage Policies
 
 <%=
 def wrap(s, width=78)
-      s.gsub(/(.{1,#{width}})( +|\Z)/, "\\1\n ")
+      s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n ")
 end
 
 def markup(l)