From 495bfb36b38eabbf61c1c58855d8255a97951c18 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 30 May 2015 10:16:16 -0500 Subject: [PATCH] Fix dump_html_metadata for non-string values. --- fanficfare/story.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 75953fb..4086bd1 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -563,7 +563,8 @@ class Story(Configurable): if None in v: v.remove(None) #logger.debug("k:%s v:%s"%(k,v)) - val = ""%"\n
  • ".join(v) + # force ints/floats to strings. + val = "" % "
  • \n
  • ".join([ "%s"%x for x in v ]) elif isinstance(v, (int)): classes.append("int") val = v