Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django html2text anchor breaking

Tags:

django

While sending html and pain-text with MIMEMultipart('alternative')

When converting html to text the anchor of html is breaking in new line

http://127.0.0.1:8000/some-url/other-part-of-url

to

http://127.0.0.1:8000/some-

url/other-part-of-url

Why this is happening?

like image 667
hkjamil Avatar asked Feb 23 '26 04:02

hkjamil


1 Answers

django html2text(content,baseUrl,length) has 3 parameter in constructor where the third one is length(default 78). You can increase the length by using that.

like image 173
Md. Mahmud Hasan Avatar answered Feb 26 '26 02:02

Md. Mahmud Hasan