Permalink
Browse files

Update src/erlydtl_runtime.erl

Fixed issue #56	
spaceless is not removing newline.
  • Loading branch information...
sendtopms committed Dec 28, 2012
1 parent 6d1fcaf commit 3d6d6815e448f87486b92143570e41de2d9bed3b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/erlydtl_runtime.erl
View
@@ -269,9 +269,9 @@ widthratio(Numerator, Denominator, Scale) ->
spaceless(Contents) ->
Contents1 = lists:flatten(Contents),
- Contents2 = re:replace(Contents1, "^\s+<", "<", [{return,list}]),
- Contents3 = re:replace(Contents2, ">\s+$", ">", [{return,list}]),
- Contents4 = re:replace(Contents3, ">\s+<", "><", [global, {return,list}]),
+ Contents2 = re:replace(Contents1, "^\\s+<", "<", [{return,list}]),
+ Contents3 = re:replace(Contents2, ">\\s+$", ">", [{return,list}]),
+ Contents4 = re:replace(Contents3, ">\\s+<", "><", [global, {return,list}]),
Contents4.
read_file(Module, Function, DocRoot, FileName) ->

0 comments on commit 3d6d681

Please sign in to comment.