aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/xmlConsoleDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/GuiClient/xmlConsoleDialog.cpp')
-rw-r--r--examples/GuiClient/xmlConsoleDialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/GuiClient/xmlConsoleDialog.cpp b/examples/GuiClient/xmlConsoleDialog.cpp
index e229cd16..2a2677f5 100644
--- a/examples/GuiClient/xmlConsoleDialog.cpp
+++ b/examples/GuiClient/xmlConsoleDialog.cpp
@@ -19,10 +19,12 @@ xmlConsoleDialog::~xmlConsoleDialog()
void xmlConsoleDialog::message(QXmppLogger::MessageType type, const QString& text)
{
QDomDocument doc;
+
+// Indent XML string
bool isXml = doc.setContent(text);
QString formattedText;
QTextStream stream(&formattedText);
- doc.save(stream, 4);
+ doc.save(stream, 2);
if(isXml)
ui->textBrowser->append(formattedText);