From 39f48c185cf7816ad4e4ce02d30181c0c7872650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Tue, 21 Jun 2016 12:22:17 +0200 Subject: [PATCH] Fix result table markup --- puppetboard/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/puppetboard/utils.py b/puppetboard/utils.py index 9185008..5e37bfb 100644 --- a/puppetboard/utils.py +++ b/puppetboard/utils.py @@ -36,20 +36,21 @@ def formatvalue(value): return str(value) def prettyprint(value): - html = '' + html = '
' # Get keys for k in value[0]: html += "" + html += "" + for e in value: html += "" for k in e: html += "" html += "" - html += "" - html += "
"+k+"
"+formatvalue(e[k])+"
" + html += "" return(html) def get_or_abort(func, *args, **kwargs):