[issue41387] Escape needed in the email documentation example

Antonio Gutierrez report at bugs.python.org
Fri Jul 24 15:38:15 EDT 2020


Antonio Gutierrez <antdcs at gmail.com> added the comment:

I forget to mention that I am receiving the mails with gmail, I don't know
if that is important or not. It shouldn't be different right, but for me it
is, if i don't use the escape the image is send and I can get it from the
attachment, but I am unable to see it in the html message. Maybe I am
doing something wrong.

El vie., 24 jul. 2020 a las 21:25, Lewis Ball (<report at bugs.python.org>)
escribió:

>
> Lewis Ball <lrjball at gmail.com> added the comment:
>
> So I have just tried it out and the example seems to work fine for me as
> it is (tested using 3.8.2).
>
> Note that escaping the " in this case makes no difference to the string:
> ```
> >>> """<img src="cid:{cid}" />""" == """<img src=\"cid:{cid}\" />"""
> True
> ```
>
> ----------
> nosy: +Lewis Ball
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue41387>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41387>
_______________________________________


More information about the Python-bugs-list mailing list