hkjamil
hkjamil

Reputation: 180

django html2text anchor breaking

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?

Upvotes: 3

Views: 166

Answers (1)

Md. Mahmud Hasan
Md. Mahmud Hasan

Reputation: 1063

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.

Upvotes: 5

Related Questions