Author terry.reedy
Recipients taleinat, terry.reedy
Date 2018-12-15.03:18:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My suggest simple rule would sqeeze it.  With n = 50 and k = 75,

if len(s) > n*k or s.count('\n') > n: squeeze(s)

would squeeze at 3750.  With k = 50, as 2500.

I am not sure yet what to do about wrapping.  For development, a count of actual lines might be more helpful than a variable number of wrapped lines.
Date User Action Args
2018-12-15 03:18:12terry.reedysetrecipients: + terry.reedy, taleinat
2018-12-15 03:18:12terry.reedysetmessageid: <>
2018-12-15 03:18:12terry.reedylinkissue35208 messages
2018-12-15 03:18:11terry.reedycreate