Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation issues in text editors / email #2

Open
assafmilman opened this issue Jun 20, 2016 · 1 comment
Open

Indentation issues in text editors / email #2

assafmilman opened this issue Jun 20, 2016 · 1 comment

Comments

@assafmilman
Copy link

assafmilman commented Jun 20, 2016

Hi, I'm trying to integrate tabulate into a service which sends emails with tabular data.
After creating the tabulate object, I convert to string (printing it looks great in pycharm) and then send by email.

When the recipient gets the email (Gmail in our case), the table's indentations is all wrong.
BUT - when copying the table from the email back to sublime text editor, the indentation looks great!
See the attached screenshots, it'll make more sense.

I understand this is NOT a tabulate issue as this was probably not the original intention, but thought it was worth asking if you can think of a reason why this happens, and maybe if you can think of a solution.

In Gmail:
tabulate_in_gmail

Sublime (after copying form email))
tabulate_in_sublime

@gregbanks
Copy link
Owner

this is because the font being used in the email is not monospace. try wrapping it in some markup and set font-family to monospace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants