wbailey / command_line_reporter

A gem for making it easy to produce a report while a ruby script is executing
Apache License 2.0
432 stars 23 forks source link

Table formatting broken in v3.3.3 #21

Closed dideler closed 9 years ago

dideler commented 9 years ago

Commit a59d00e breaks the table formatting, and v3.3.3 which was just released contains that commit.

Before (GitHub slightly messes up the alignment)

┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ NAME                 ┃                   ADDRESS      ┃ CITY            ┃ 
┣━━━━━━━━━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━━━━┫
┃ Caesar               ┃              1 Appian Way      ┃ Rome            ┃ 
┣━━━━━━━━━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━━━━┫
┃ Richard Feynman      ┃             1 Golden Gate      ┃ Quantum Field   ┃ 
┗━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━┛

After


┃ NAME                 ┃                   ADDRESS      ┃ CITY            ┃ 

┃ Caesar               ┃              1 Appian Way      ┃ Rome            ┃ 

┃ Richard Feynman      ┃             1 Golden Gate      ┃ Quantum Field   ┃ 

I first noticed this when I was developing from HEAD for my patches, but I assumed the fault was somehow in my dev environment. Then I upgraded the gem from v3.3.2 to v3.3.3 and noticed the issue again.