fixed errant newlines in generated code
This commit is contained in:
		| @@ -10,7 +10,7 @@ namespace cellar { | |||||||
|           |           | ||||||
|          with open("src/bottles/commands.txt") as commandsfile: |          with open("src/bottles/commands.txt") as commandsfile: | ||||||
|             for line in commandsfile: |             for line in commandsfile: | ||||||
|                 item = line.split(" ") |                 item = line.strip().split(" ") | ||||||
|                 cog.outl("extern void {0} (int, char**);".format(item[1])) |                 cog.outl("extern void {0} (int, char**);".format(item[1])) | ||||||
|       ]]]*/ |       ]]]*/ | ||||||
|     //[[[end]]] |     //[[[end]]] | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ DLL_PUBLIC map<string, CommandFunction> cellar::commands::bottles_commands() { | |||||||
|  |  | ||||||
|          with open("src/bottles/commands.txt") as commandfile: |          with open("src/bottles/commands.txt") as commandfile: | ||||||
|             for line in commandfile: |             for line in commandfile: | ||||||
|                 linesplit = line.split(" ") |                 linesplit = line.strip().split(" ") | ||||||
|                 name = linesplit[0] |                 name = linesplit[0] | ||||||
|                 func = linesplit[1] |                 func = linesplit[1] | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user