Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Follow structure of EHTML as stated in manual

  • Loading branch information...
commit 00aa12d98a85c6d721e75c076651e88fa6335f03 1 parent e662e51
@imtal imtal authored vinoski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/yaws_exhtml.erl
View
4 src/yaws_exhtml.erl
@@ -74,8 +74,8 @@ format(Mode, [{'$html', HTML}|Rest], Value2StringF, N, Indent) ->
[HTML|format(Mode, Rest, Value2StringF, N, Indent)];
format(Mode, [{Tag}|Rest], Value2StringF, N, Indent) ->
format(Mode, [{Tag, [], []}|Rest], Value2StringF, N, Indent);
-format(Mode, [{Tag, Body}|Rest], Value2StringF, N, Indent) ->
- format(Mode, [{Tag, [], Body}|Rest], Value2StringF, N, Indent);
+format(Mode, [{Tag, Attrs}|Rest], Value2StringF, N, Indent) ->
+ format(Mode, [{Tag, Attrs, []}|Rest], Value2StringF, N, Indent);
format(Mode, [{Tag, Attrs, Body}|Rest], Value2StringF, N, Indent) ->
TagString = lowercase(tag_string(Tag)),
case {Mode, block_level(TagString), Body} of
Please sign in to comment.
Something went wrong with that request. Please try again.