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 rendering issue in MIMEText html rendering #125867

Open
azmee-meta opened this issue Oct 23, 2024 · 0 comments
Open

html rendering issue in MIMEText html rendering #125867

azmee-meta opened this issue Oct 23, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@azmee-meta
Copy link

azmee-meta commented Oct 23, 2024

Bug report

Bug description:

# **DESCRIPTION & CODE**
when there is lots of 

`<tr><td>36</td>  <td>16</td>  <td>-56%</td>  <td></td>  <td></td>  <td></td>  <td></td>  <td></td>  <td></td>  <td></td>  <td></td>  </tr>   <tr> <td></td></tr>` (i make this code dynamically, which sometimes lead to very big table/code, in that case the issue arise)

like this, then sometimes in <td> or <tr> tag render like this(< td> < tr>, put space unexpectedly) and the table breaks in the email body.

**Note:** i am using a little inline css in table, `<html lang='en'><head><meta charset='UTF-8'></head><body><table border=1 bordercolor='black' cellspacing=0 cellpadding=5> <tr>`

msg.attach(MIMEText(html, 'html'))

CPython versions tested on:

3.12

Operating systems tested on:

Windows

@azmee-meta azmee-meta added the type-bug An unexpected behavior, bug, or error label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant