From dcbfd1425ade55cd253039afce2f9702f766e663 Mon Sep 17 00:00:00 2001 From: CSchlipp Date: Wed, 22 May 2013 09:49:33 +0200 Subject: [PATCH] Change status.xml to default xml-style with only one element/tag per line Change status.xml to default xml-style with only one element/tag per line. Makes it a lot more easier to parse the file. --- src/webui/simpleui.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/webui/simpleui.c b/src/webui/simpleui.c index 30f87699..c4fe3e2c 100644 --- a/src/webui/simpleui.c +++ b/src/webui/simpleui.c @@ -1,6 +1,6 @@ /* * tvheadend, WEBUI / HTML user interface - * Copyright (C) 2008 Andreas Öman + * Copyright (C) 2008 Andreas �man * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -422,20 +422,20 @@ page_status(http_connection_t *hc, html_escape(buf, lang_str_get(de->de_title, NULL), sizeof(buf)); htsbuf_qprintf(hq, - "" - "" - "%d/%02d/%02d" - "" - "%"PRItime_t"" - "%"PRItime_t"" - "" - "" - "%d/%02d/%02d" - "" - "%"PRItime_t"" - "%"PRItime_t"" - "" - "%s", + "\n" + "\n" + "%d/%02d/%02d\n" + "\n" + "%"PRItime_t"\n" + "%"PRItime_t"\n" + "\n" + "\n" + "%d/%02d/%02d\n" + "\n" + "%"PRItime_t"\n" + "%"PRItime_t"\n" + "\n" + "%s\n", a.tm_year + 1900, a.tm_mon + 1, a.tm_mday, a.tm_hour, a.tm_min, de->de_start, @@ -448,14 +448,14 @@ page_status(http_connection_t *hc, rstatus = val2str(de->de_sched_state, recstatustxt); html_escape(buf, rstatus, sizeof(buf)); - htsbuf_qprintf(hq, "%s\n", buf); + htsbuf_qprintf(hq, "%s\n\n", buf); cc++; timeleft = -1; } } if ((cc==0) && (timeleft < INT_MAX)) { - htsbuf_qprintf(hq, "%d\n",timeleft); + htsbuf_qprintf(hq, "\n%d\n\n",timeleft); } dvr_query_free(&dqr);