mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-08 18:44:06 +01:00
Cleaned up the generated source some
This commit is contained in:
parent
6bcd109cf1
commit
8854363785
@ -182,9 +182,9 @@ def makePluginDocumentation(pluginWindow):
|
|||||||
morehelp = cgi.escape(morehelp)
|
morehelp = cgi.escape(morehelp)
|
||||||
trClass = trClasses[trClass]
|
trClass = trClasses[trClass]
|
||||||
fd.write(textwrap.dedent('''
|
fd.write(textwrap.dedent('''
|
||||||
<tr class="%s" name="%s" id="%s"><td>%s</td><td>%s</td>
|
<tr class="%s" id="%s"><td>%s</td><td>%s</td>
|
||||||
<td class="detail">%s</td></tr>
|
<td class="detail">%s</td></tr>
|
||||||
''' % (trClass, attr, attr, attr, help, morehelp)))
|
''' % (trClass, attr, attr, help, morehelp)))
|
||||||
fd.write('</table>\n')
|
fd.write('</table>\n')
|
||||||
fd.write(textwrap.dedent('''
|
fd.write(textwrap.dedent('''
|
||||||
</div>
|
</div>
|
||||||
@ -226,7 +226,7 @@ def makeCommandsIndex():
|
|||||||
commands.sort()
|
commands.sort()
|
||||||
for i in ascii_lowercase:
|
for i in ascii_lowercase:
|
||||||
if i in firstChars:
|
if i in firstChars:
|
||||||
fd.write('<a href="#%s">%s</a> ' % (i, i.capitalize()))
|
fd.write('<a href="#%s">%s</a> \n' % (i, i.capitalize()))
|
||||||
else:
|
else:
|
||||||
fd.write('%s ' % i.capitalize())
|
fd.write('%s ' % i.capitalize())
|
||||||
firstChars.clear()
|
firstChars.clear()
|
||||||
@ -236,16 +236,16 @@ def makeCommandsIndex():
|
|||||||
c = command[0]
|
c = command[0]
|
||||||
if c not in firstChars:
|
if c not in firstChars:
|
||||||
if firstChars:
|
if firstChars:
|
||||||
fd.write('\n</div><br />')
|
fd.write('</div><br />\n')
|
||||||
fd.write('\n<div class="whitebox">')
|
fd.write('\n<div class="whitebox">')
|
||||||
firstChars[c] = ''
|
firstChars[c] = ''
|
||||||
fd.write('<div name="%s" id="%s" class="letter">%s</div>\n' %
|
fd.write('<div id="%s" class="letter">%s</div>\n' %
|
||||||
(c, c, c.capitalize()))
|
(c, c.capitalize()))
|
||||||
plugins = commandDict[command]
|
plugins = commandDict[command]
|
||||||
plugins.sort()
|
plugins.sort()
|
||||||
fd.write('<strong>%s</strong> (%s)<br />\n' %
|
fd.write('<strong>%s</strong> (%s)<br />\n' %
|
||||||
(command,
|
(command,
|
||||||
', '.join([pluginLink % (p,command,p) for p in plugins])))
|
', \n\t'.join([pluginLink % (p,command,p) for p in plugins])))
|
||||||
fd.write('\n</div>')
|
fd.write('\n</div>')
|
||||||
fd.write(textwrap.dedent(genFooter()))
|
fd.write(textwrap.dedent(genFooter()))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user