gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26068 - monkey/trunk/pathologist/src/pathologist


From: gnunet
Subject: [GNUnet-SVN] r26068 - monkey/trunk/pathologist/src/pathologist
Date: Mon, 11 Feb 2013 14:39:59 +0100

Author: teichm
Date: 2013-02-11 14:39:58 +0100 (Mon, 11 Feb 2013)
New Revision: 26068

Modified:
   monkey/trunk/pathologist/src/pathologist/xml_writer.c
Log:
nicer newlines in report

Modified: monkey/trunk/pathologist/src/pathologist/xml_writer.c
===================================================================
--- monkey/trunk/pathologist/src/pathologist/xml_writer.c       2013-02-11 
13:25:49 UTC (rev 26067)
+++ monkey/trunk/pathologist/src/pathologist/xml_writer.c       2013-02-11 
13:39:58 UTC (rev 26068)
@@ -99,7 +99,7 @@
 int MONKEY_XML_WRITER_write_document(FILE* file, struct MONKEY_XML_Node *root) 
{
        struct MONKEY_XML_Node *tmp = root->childrenListHead;
        struct XmlAttribute *tmpAttribute = root->attributeListHead;
-       if (NULL == tmpAttribute)
+       if (!tmpAttribute)
                fprintf(file, "<%s>", root->name);
        else {
                fprintf(file, "<%s ", root->name);
@@ -110,8 +110,10 @@
                                        
(escapeSpecialCharacters(tmpAttribute->value)) : "");
                        tmpAttribute = tmpAttribute->next;
                }
-               fprintf(file, ">\n");
+               fprintf(file, ">");
        }
+       if(tmp) fprintf(file, "\n");
+
        if (NULL != root->innerText)
                fprintf(file, "%s", escapeSpecialCharacters(root->innerText));
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]