From: Peter Palfrader Date: Wed, 8 Jan 2014 15:17:39 +0000 (+0100) Subject: change wrap in motd X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=06aacdf2dca1cc57b6327ac7846162e74811a3d7;p=mirror%2Fdsa-puppet.git change wrap in motd --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 0838f581a..4afe1d374 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -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)