mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
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:
parent
fa06f2af34
commit
94feaa5faf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user