fixed errant newlines in generated code
This commit is contained in:
parent
6943ebfd87
commit
fbe52e8e13
@ -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]]]
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user