package views.html.helper;


public class H {

	public static play.api.templates.Html nl2br(String s) {
		return new play.api.templates.Html(s != null ? s.replaceAll("\n", "<br/>") : "");
	}
	
}

@@ -21,16 +21,49 @@
 elper;%0A%0A
+import play.api.templates.Html;%0A%0A
 %0Apublic 
@@ -88,35 +88,16 @@
  static 
-play.api.templates.
 Html nl2
@@ -117,54 +117,124 @@
 %7B%0A%09%09
-return new play.api.templates.Html(
+if (s == null)%0A%09%09%09return new Html(%22%22);%0A%09%09s = s.replaceAll(%22%5Cn%5Cr%22, %22%3Cbr/%3E%22);%0A%09%09
 s 
-!
 = 
-null ?
+s.replaceAll(%22%5Cr%22, %22%3Cbr/%3E%22);%0A%09%09s =
  s.r
@@ -261,13 +261,29 @@
 /%3E%22)
- : %22%22
+;%0A%09%09return new Html(s
 );%0A%09

enhance nl2br