From 23e6c21a7e00c7b7fc5d4ac59f6539e51e4e0f3d Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 16 Nov 2013 12:30:20 -0800 Subject: [PATCH] Updating formatting for HTML output Former-commit-id: 9f3bb3a0f42e0ab0b074e84f40044c07a4e0db91 --- yomi_base/reader_util.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yomi_base/reader_util.py b/yomi_base/reader_util.py index 21910bf..6e10e4f 100644 --- a/yomi_base/reader_util.py +++ b/yomi_base/reader_util.py @@ -161,12 +161,12 @@ def buildEmpty(): def buildVocabDef(definition, index, query): reading = unicode() if definition['reading']: - reading = u'[{0}]'.format(definition['reading']) + reading = u'[{0}]
'.format(definition['reading']) rules = unicode() if len(definition['rules']) > 0: - rules = ' • '.join(definition['rules']) - rules = '<{0}>
'.format(rules) + rules = ' :: '.join(definition['rules']) + rules = '{0}
'.format(rules) links = ''.format(index) if query is not None: @@ -178,9 +178,9 @@ def buildVocabDef(definition, index, query): html = u""" {0} {1}
- {2}
+ {2} {3}
- {4} + {4}
""".format(links, definition['expression'], reading, definition['glossary'], rules) return html @@ -207,7 +207,7 @@ def buildKanjiDef(definition, index, query): {0} {1}
[{2}]
- {3} + {3}

""".format(links, definition['character'], readings, definition['glossary']) return html