-
Notifications
You must be signed in to change notification settings - Fork 73
Create unicode_tables.py #42
base: master
Are you sure you want to change the base?
Create unicode_tables.py #42
Conversation
Added tables that directly uses Unicode characters. Useful for outputting outputs that do not support terminal control characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include noqa import lines in terminaltables/__init__.py
too like the other tables?
|
||
class UnicodeSingleTable(AsciiTable): | ||
"""Draw a table using box-drawing characters. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove newline from here so both """ are on the same line as per pep8.
|
||
class UnicodeDoubleTable(AsciiTable): | ||
"""Draw a table using double lined box-drawing characters. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
So can be imported in the same way as the other table types; as requested in Robpol86#42.
As requested in Robpol86#42.
I was having issues in my program with the normal @legendre6891: I hope you don't mind but I've pushed a couple of commits to another branch to address the requested changes and try and help make this mergeable upstream, feel free to make the changes yourself if you prefer however. |
So output displays correctly in less; previously the tables were messing up all the output. Refer to: Robpol86/terminaltables#42.
Hi, glad you found it useful. I apologize for the bad etiquette for not responding to the changes --- caught up with school at the moment. Please feel free to merge your branch, thanks! All the best. |
Added tables that directly uses Unicode characters. Useful for outputting outputs that do not support terminal control characters.
I'm using this for outputting tables in a Jupyter notebook kernel.