<%=
def wrap(s, width=78)
- s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
+ s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n ")
end
def markup(l)
if classes.include?("porterbox")
- purp += "\n Disk space on porter boxes is often limited. Please respect your fellow\n" +
- " porters by cleaning up after yourself by deleting schroots and source/build\n" +
- " trees in your $HOME, as soon as feasible. DSA reserves the right to recover\n" +
- " disk space as necessary.\n"
+ purp += "\n" + wrap("Disk space on porter boxes is often limited. Please
+respect your fellow porters by cleaning up after yourself by deleting
+schroots and source/build trees in your $HOME, as soon as feasible. DSA
+reserves the right to recover disk space as necessary.") + "\n"
end
if ninfo['not-bacula-client'] then
- purp += "\n Note that this host is _NOT_ being backed up. If you care about your\n" +
- " data, run your own backups.\n"
+ purp += "\n" + wrap("Note that this host is _NOT_ being backed up. If you
+care about your data, run your own backups.") + "\n"
end
if scope.lookupvar('site::nodeinfo').has_key?('footer')