From 35c4e740ab36336bcd6136c54cf7a110eda4e3f9 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 12 Sep 2012 19:48:18 +0200 Subject: [PATCH] Fix recent commit "Reduce size..." --- src/xml_stream.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xml_stream.erl b/src/xml_stream.erl index a2ad5acb4..0fd68056a 100644 --- a/src/xml_stream.erl +++ b/src/xml_stream.erl @@ -89,8 +89,8 @@ process_data(CallbackPid, Stack, Data) -> catch gen_fsm:send_event(CallbackPid, {xmlstreamend, EndName}), []; - [#xmlel{name = Name, attrs = Attrs, children = Els} - | xmlstreamstart] -> + [#xmlel{name = Name, attrs = Attrs, children = Els}, + xmlstreamstart] -> NewEl = #xmlel{name = Name, attrs = Attrs, children = lists:reverse(Els)}, catch gen_fsm:send_event(CallbackPid,