From 06aacdf2dca1cc57b6327ac7846162e74811a3d7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 8 Jan 2014 16:17:39 +0100 Subject: [PATCH] change wrap in motd --- modules/motd/templates/motd.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1