khalidabuhakmeh / ConsoleTables

Print out a nicely formatted table in a console application C#
MIT License
944 stars 157 forks source link

String.Format throws exception #8

Closed FabioCZ closed 8 years ago

FabioCZ commented 9 years ago

On my setup (Mono/.Net 4.5), String.Format throws exception (incorrect input string format).

Seems to be caused by spaces in the alignment component

ConsoleTable.cs#69 produces those spaces (e.g. "{0, -1 }" instead of "{0,-1}"). With spaces removed, everything seems to work alright.

khalidabuhakmeh commented 9 years ago

PR me the fix and I'll merge it in 😀

FabioCZ commented 9 years ago

Would do that, but seems like I don't have push permissions for this repo.

khalidabuhakmeh commented 8 years ago

I just pushed 1.1.1 to fix this issue. Try it out.