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

HTML tables stopped working #141

Open
talbaumel opened this issue Nov 21, 2022 · 4 comments
Open

HTML tables stopped working #141

talbaumel opened this issue Nov 21, 2022 · 4 comments
Labels

Comments

@talbaumel
Copy link

talbaumel commented Nov 21, 2022

Describe the bug
I used to send HTML tables on my automatic msg, this feature stopped working (probably teams changed someting)

To Reproduce
Just try to post this msg, the table won't appear
"<h2>My table:</h2> <table border="1" class="dataframe">\n <thead>\n <tr style="text-align: right;">\n <th></th>\n <th>0</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>2</td>\n </tr>\n <tr>\n <th>2</th>\n <td>3</td>\n </tr>\n </tbody>\n</table> 123"

Expected behavior
See the table in the card

Screenshots

Additional context

@talbaumel talbaumel added the bug label Nov 21, 2022
@talbaumel
Copy link
Author

Seems like the problem is because of the title

@yeyeric
Copy link

yeyeric commented Dec 6, 2022

hello @talbaumel ,

we have the same problem here, table which were correctly displayed before disappeared. Even ones which were correctly viewable before.
It looks like due to an update of teams since some users still using old version of teams can see content.

What do you mean by title ? There is no title in your sample of code ?

Also, we had noted 2/3 months ago that images embbed in html disappeared (although they are still publicly accessible), but didn't investigate further.

@talbaumel
Copy link
Author

talbaumel commented Dec 7, 2022

Anything after the header disappeared, when changing the msg from my original post to:

"*My table:* <br> <table border="1" class="dataframe">\n <thead>\n <tr style="text-align: right;">\n <th></th>\n <th>0</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>2</td>\n </tr>\n <tr>\n <th>2</th>\n <td>3</td>\n </tr>\n </tbody>\n</table> 123"

I could see the table

@giahung24
Copy link

while waiting for the fixes, here my experience.
With my body_old, the table does not show.

body_old = f"""
DATE : {date}
TARGET : {t:.1%}
{output.to_html()}
"""

With my body_new, the problem is gone.

body_new = f"Date : {date}<br/>TARGET : {t:.1%}<br/>{output.to_html()}"

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

No branches or pull requests

3 participants