|Subject:||"This shouldn't happen" does happen with very long lines|
|Date:||Sat, 6 Jan 2018 07:19:46 +0000|
|To:||bug-Text-Tabs+Wrap [...] rt.cpan.org|
|From:||Andrew Beverley <andy [...] andybev.com>|
If using Text::Wrap with $huge = 'overflow' and very long lines without spaces, then the Perl regular expression capture limit of 32766 causes Text::Wrap to exit with "This shouldn't happen". The problem is that the conditional statement that should catch it does not, because the capture is greater than 32766. The attached patch fixes it for me, but I would welcome any feedback.
Message body is not shown because sender requested not to inline it.