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 0838f58..4afe1d3 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)