diff --git a/include/internal/bottles.hpp.cog b/include/internal/bottles.hpp.cog index aeb0e1a..23b0518 100644 --- a/include/internal/bottles.hpp.cog +++ b/include/internal/bottles.hpp.cog @@ -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]]] diff --git a/src/bottles/commands.cpp.cog b/src/bottles/commands.cpp.cog index ab101cf..c2d2671 100644 --- a/src/bottles/commands.cpp.cog +++ b/src/bottles/commands.cpp.cog @@ -17,7 +17,7 @@ DLL_PUBLIC map 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]