Max line width of HTML output

7 views
Skip to first unread message

Dawid Gosławski

unread,
Oct 1, 2016, 5:00:17 PM10/1/16
to nokogiri-talk
Hi

I was looking through documentation but I did not succeed finding any option that ensures max line width for HTML code.

RFC for SMTP specify limit for line as :

4.5.3.1.6. Text Line
The maximum total length of a text line including the <CRLF> is 1000 octets (not counting the leading dot duplicated for transparency). This number may be increased by the use of SMTP Service Extensions.

https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6

And I'm looking for non-regexp way to change output in a way that tags that (including children) are longer than 1000 will have
children moved into new line.

Do you know easy way of doing that ?

Best regards
Dawid
Reply all
Reply to author
Forward
0 new messages