# HG changeset patch # User Marcin Cieślak # Date 1431284147 0 # Sun May 10 18:55:47 2015 +0000 # Node ID 775cce38c446638d8c636d594dde3d33bcb20935 # Parent 9195b3da53497911df118cacd8e4393adb11d5a1 Bots should not fight diff --git a/plwiki/chemia/comp.py b/plwiki/chemia/comp.py --- a/plwiki/chemia/comp.py +++ b/plwiki/chemia/comp.py @@ -124,7 +124,7 @@ def formatter(elements): out = ["__NOEDITSECTION__", u"{{Spis treści}}"] for (ch, ac) in elements.allarticles(): - out.append(u"===%s===" % unicode(ch.wikilink)) + out.append(u"==%s==" % unicode(ch.wikilink)) ac.sort() group = [] cntcur = 0 @@ -137,14 +137,13 @@ cntcursiz = 0 cntcur = cnt if groupopen: - out.append(u"\n") groupopen = False if cntcursiz > 5 and not groupopen: - out.append(u"====%s%d====" % (ch.symbol, cnt)) + out.append(u"===%s%d===" % (ch.symbol, cnt)) groupopen = True - group.append(u"%s" % a.wikilink()) + group.append(u"%s" % a.wikilink()) cntcursiz += 1 out.append("\n".join(group))