From 0a026c8b451a76bcedc7d6a44d3f6a002284da30 Mon Sep 17 00:00:00 2001 From: Philipp Schafft <lion@lion.leolix.org> Date: Mon, 17 Dec 2018 08:52:51 +0000 Subject: [PATCH] Cleanup: Corrected code formating --- src/xslt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/xslt.c b/src/xslt.c index 73a4eb65..1d33fede 100644 --- a/src/xslt.c +++ b/src/xslt.c @@ -356,19 +356,19 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client, in if (cur->encoding) charset = (char *)cur->encoding; - if (cur->mediaType) + if (cur->mediaType) { mediatype = (char *)cur->mediaType; - else - { + } else { /* check method for the default, a missing method assumes xml */ - if (cur->method && xmlStrcmp (cur->method, XMLSTR("html")) == 0) + if (cur->method && xmlStrcmp(cur->method, XMLSTR("html")) == 0) { mediatype = "text/html"; - else - if (cur->method && xmlStrcmp (cur->method, XMLSTR("text")) == 0) - mediatype = "text/plain"; - else - mediatype = "text/xml"; + } else if (cur->method && xmlStrcmp(cur->method, XMLSTR("text")) == 0) { + mediatype = "text/plain"; + } else { + mediatype = "text/xml"; + } } + if (problem == 0) { ssize_t ret;