Skip to content

Commit

Permalink
Merge pull request miyagawa#1 from emasaka/master
Browse files Browse the repository at this point in the history
Content with newlines or tabs not to be encoded to base64 in as_xml
  • Loading branch information
miyagawa committed May 23, 2011
2 parents 58cd36c + c68e06f commit 50d39bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XML/Atom/Content.pm
Expand Up @@ -147,7 +147,7 @@ sub _is_printable {
? $data
: eval { Encode::decode("utf-8", $data, Encode::FB_CROAK) } );

return ! $@ && $decoded =~ /^\p{IsPrint}*$/;
return ! $@ && $decoded =~ /^[\p{IsPrint}\s]*$/;
}

1;

0 comments on commit 50d39bc

Please sign in to comment.