Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/items.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-07-31 19:25:46 (GMT)
committer Richard Darst <rkd@zgib.net>2009-07-31 19:25:46 (GMT)
commitaafae93a30120fc1a6a08f2d913aba9292dfac63 (patch)
tree14d830d92481e4ea0d4df553b2d8ab85e6ab77dd /items.py
parentc03cb0fea54db533da1476697f79ab615b1eddbc (diff)
don't show "INFO" or "LINK" in HTML2 writer
- With this, #info basically becomes the default when reading logs. This makes it much easier to read. Same goes for #link : It's obvious it's a link, no need to emphasize it more. darcs-hash:20090731192546-82ea9-4605f3edb1d4ba42d8324241dff28c88460ad4a5.gz
Diffstat (limited to 'items.py')
-rw-r--r--items.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/items.py b/items.py
index 5a21385..19ff1a5 100644
--- a/items.py
+++ b/items.py
@@ -164,6 +164,8 @@ class GenericItem(_BaseItem):
class Info(GenericItem):
itemtype = 'INFO'
+ html2_template = ("""%(starthtml)s%(line)s%(endhtml)s """
+ """(<a href='%(link)s#%(anchor)s'>%(nick)s</a>, %(time)s)""")
class Idea(GenericItem):
itemtype = 'IDEA'
class Agreed(GenericItem):
@@ -187,7 +189,9 @@ class Link(_BaseItem):
</tr>"""
#html2_template = ("""<i>%(itemtype)s</i>: %(starthtml)s<a href="%(url)s">%(url_readable)s</a> %(line)s%(endhtml)s """
# """(%(nick)s, <a href='%(link)s#%(anchor)s'>%(time)s</a>)""")
- html2_template = ("""<i>%(itemtype)s</i>: %(starthtml)s<a href="%(url)s">%(url_readable)s</a> %(line)s%(endhtml)s """
+ #html2_template = ("""<i>%(itemtype)s</i>: %(starthtml)s<a href="%(url)s">%(url_readable)s</a> %(line)s%(endhtml)s """
+ # """(<a href='%(link)s#%(anchor)s'>%(nick)s</a>, %(time)s)""")
+ html2_template = ("""%(starthtml)s<a href="%(url)s">%(url_readable)s</a> %(line)s%(endhtml)s """
"""(<a href='%(link)s#%(anchor)s'>%(nick)s</a>, %(time)s)""")
rst_template = """*%(itemtype)s*: %(startrst)s%(url)s %(line)s%(endrst)s (%(rstref)s_)"""
text_template = """%(itemtype)s: %(starttext)s%(url)s %(line)s%(endtext)s (%(nick)s, %(time)s)"""