summaryrefslogtreecommitdiff
path: root/lib/Pod/Html.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Pod/Html.pm')
-rw-r--r--lib/Pod/Html.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 515ca4ebe9..e8f9ff3fa5 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -372,14 +372,14 @@ sub pod2html {
# be eol agnostic
for (@poddata) {
- if (/\x0D/) {
- if (/\x0D\x0A/) {
- @poddata = map { s/\x0D\x0A/\n/g;
+ if (/\r/) {
+ if (/\r\n/) {
+ @poddata = map { s/\r\n/\n/g;
/\n\n/ ?
map { "$_\n\n" } split /\n\n/ :
$_ } @poddata;
} else {
- @poddata = map { s/\x0D/\n/g;
+ @poddata = map { s/\r/\n/g;
/\n\n/ ?
map { "$_\n\n" } split /\n\n/ :
$_ } @poddata;