scripts/supybot-plugin-create: Fix #721 .

* README template is now cut to two lines for easier reading in non-word
wrapping text editors on normal terminal size.
* README is now saved as `README.md` instead of `README.txt`.
This commit is contained in:
Mikaela Suomalainen 2014-06-06 11:37:13 +03:00
parent fa06f2af34
commit 94feaa5faf

View File

@ -204,7 +204,8 @@ class %sTestCase(PluginTestCase):
'''.lstrip()
readmeTemplate = '''
Insert a description of your plugin here, with any notes, etc. about using it.
Insert a description of your plugin here, with any notes, etc. about
using it.
'''.lstrip()
def main():
@ -288,7 +289,7 @@ def main():
name))
writeFile('__init__.py', __init__Template % (copyright, name))
writeFile('test.py', testTemplate % (copyright, name, name))
writeFile('README.txt', readmeTemplate)
writeFile('README.md', readmeTemplate)
pathname = os.path.join(pathname, 'local')
os.mkdir(pathname)