Skip to content

Commit 8a876cd

Browse files
author
Claes Wikstrom
committed
""
git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@314 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
1 parent a6c71de commit 8a876cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/yaws_api.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,8 @@ ehtml_expand([]) ->
10941094

10951095
ehtml_attrs([]) ->
10961096
[];
1097+
ehtml_attrs([Attribute|Tail]) when atom(Attribute) ->
1098+
[[$ |atom_to_list(Attribute)]|ehtml_attrs(Tail)];
10971099
ehtml_attrs([{Name, Value} | Tail]) ->
10981100
ValueString = if atom(Value) -> [$",atom_to_list(Value),$"];
10991101
list(Value) -> [$",Value,$"]
@@ -1269,4 +1271,3 @@ ehtml_expander_test() ->
12691271
binary_to_list(list_to_binary(Page2)),
12701272
Expand}.
12711273

1272-

0 commit comments

Comments
 (0)