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

issues with content display #271

Open
leewi9 opened this issue Apr 6, 2024 · 0 comments
Open

issues with content display #271

leewi9 opened this issue Apr 6, 2024 · 0 comments

Comments

@leewi9
Copy link

leewi9 commented Apr 6, 2024

Thank you for making yagmail, it is awesome.

By this code,

gdp_dict = {'Country1': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP1': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                'Country2': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP2': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                'Country3': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP3': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                'Country4': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP4': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                'Country5': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP5': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                'Country6': ['United States', 'China', 'Japan', 'Germany', 'India'],
                'GDP6': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'],
                }
    df = pd.DataFrame(gdp_dict)
    html = build_table(df, color='blue_light')
    yag.send(to=address, subject=subject, contents=[html])

I did received mail, but two issues spotted

first, there is large margin between table and title, looks like a large empty area, don't know why

second, how to make text middle in the table, and don not wrap text if it is long

2024-04-06_221958

thanks

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

1 participant