<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,8 +6,7 @@
  * error */
 /* Mostly ripped from code in parser.c and error.c in libxml. Not ideal, but 
  * it seems impossible to hook into libxml's error string generation */
-int xml_push_error(lua_State *L, xmlErrorPtr err)
-{
+int xml_push_error(lua_State *L, xmlErrorPtr err) {
   if (err==NULL)
     luaL_error(L, &quot;a NULL error was raised. Should not happen&quot;);
 
@@ -26,23 +25,20 @@ int xml_push_error(lua_State *L, xmlErrorPtr err)
   if ((node != NULL) &amp;&amp; (node-&gt;type == XML_ELEMENT_NODE))
     name = node-&gt;name;
 
-  if (file != NULL)
-  {
+  if (file != NULL) {
     lua_pushfstring(L, &quot;%s:%d: &quot;, file, line);
     luaL_addvalue(B);
-  }
-  else if ((line != 0) &amp;&amp; (domain == XML_FROM_PARSER))
-  {
+  } else if ((line != 0) &amp;&amp; (domain == XML_FROM_PARSER)) {
     lua_pushfstring(L, &quot;Entity: line %d: &quot;, line);
     luaL_addvalue(B);
   }
-  if (name != NULL)
-  {
+
+  if (name != NULL) {
     lua_pushfstring(L, &quot;element %s: &quot;, name);
     luaL_addvalue(B);
   }
-  switch (domain)
-  {
+
+  switch (domain) {
     case XML_FROM_PARSER:
       luaL_addstring(B, &quot;parser &quot;);
       break;</diff>
      <filename>error.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4cc793b1b171748e527398be626c699438a9287</id>
    </parent>
  </parents>
  <author>
    <name>A.S. Bradbury</name>
    <email>asb@asbradbury.org</email>
  </author>
  <url>http://github.com/asb/lua-xmlreader/commit/b44e6af7999f2361960e39c8718ff8529fa9b149</url>
  <id>b44e6af7999f2361960e39c8718ff8529fa9b149</id>
  <committed-date>2008-08-02T08:38:24-07:00</committed-date>
  <authored-date>2008-08-02T08:38:24-07:00</authored-date>
  <message>coding style changes to error.c</message>
  <tree>cdcd3bf7c02738adfca42a08a2ff0c59e485c9c3</tree>
  <committer>
    <name>A.S. Bradbury</name>
    <email>asb@asbradbury.org</email>
  </committer>
</commit>
