mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-11-23 12:39:35 +01:00
Fix line breaks in append_config_doc.py.
This commit is contained in:
parent
3ab8659a52
commit
877f538d04
@ -29,7 +29,7 @@ def main():
|
||||
filename = 'use/plugins/%s.rst' % pluginName.lower()
|
||||
configRoot = 'supybot.plugins.%s' % pluginName
|
||||
with open(filename, 'a') as fd:
|
||||
fd.write('\n.. _plugin-%s-config:\n\nConfiguration\n' %
|
||||
fd.write('\n\n.. _plugin-%s-config:\n\nConfiguration\n' %
|
||||
(pluginName.lower()))
|
||||
# I'm too lazy to count it by myself:
|
||||
fd.write('-'*len('Configuration'))
|
||||
@ -58,7 +58,7 @@ def writeDoc(baseConfigNode, fd, prefix):
|
||||
'help': configVar._help}
|
||||
fd.write('.. _%(fullpath)s:\n\n%(fullpath)s\n%(decoration)s\n\n'
|
||||
'%(default_value)s\n\n'
|
||||
'%(help)s' % args)
|
||||
'%(help)s\n\n' % args)
|
||||
if '@' in variablePrefix:
|
||||
writeDoc(configVar, fd, fullPath)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user