fixed errant newlines in generated code

This commit is contained in:
Nicholas O'Connor 2017-03-23 14:44:39 -07:00
parent 6943ebfd87
commit fbe52e8e13
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ namespace cellar {
with open("src/bottles/commands.txt") as commandsfile:
for line in commandsfile:
item = line.split(" ")
item = line.strip().split(" ")
cog.outl("extern void {0} (int, char**);".format(item[1]))
]]]*/
//[[[end]]]

View File

@ -17,7 +17,7 @@ DLL_PUBLIC map<string, CommandFunction> cellar::commands::bottles_commands() {
with open("src/bottles/commands.txt") as commandfile:
for line in commandfile:
linesplit = line.split(" ")
linesplit = line.strip().split(" ")
name = linesplit[0]
func = linesplit[1]