Skip to content

Commit

Permalink
String.scala syntax fix
Browse files Browse the repository at this point in the history
add return type for nl2br
  • Loading branch information
isaacl authored Aug 9, 2018
1 parent f757a4c commit e29cb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/common/src/main/String.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final object String {
RawHtml.nl2br(text)
}

def nl2br(text: String) = nl2brUnsafe(escapeHtmlRaw(text))
def nl2br(text: String): Html = nl2brUnsafe(escapeHtmlRaw(text))

def escapeHtml(s: String) = Html {
escapeHtmlRaw(s)
Expand Down

0 comments on commit e29cb24

Please sign in to comment.