Subject: | S<non breaking text> does not work if =encoding is present |
Date: | Tue, 31 Oct 2017 21:39:23 -0700 |
To: | bug-Pod-Perldoc [...] rt.cpan.org |
From: | Jim Avera <jim.avera [...] gmail.com> |
Hi there,
perldoc (using Pod::Perldoc v3.28) folds S<supposedly non breakable text>
if any =encoding statement is present (even =encoding latin1).
STEPS TO REPRODUCE:
1. Save the following demo to foo.pl
2. Resize the terminal to 80 columns
3. perldoc ./foo.pl
RESULTS: The long formula coded in S< ... > is displayed folded, but
should be shown on a single line. The bug goes away if the =encoding
directive is removed.
#!/usr/bin/perl
1;
=pod
=encoding utf8
=head1 blahblah
Blah blah blah. The following forumula should not be folded:
S< a + b + c + d + e + f + g + h + i >
but it is.
=cut