Skip to content

issues with content display #271

@leewi9

Description

@leewi9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions