Browse files

Merge pull request #1 from emasaka/master

Content with newlines or tabs not to be encoded to base64 in as_xml
  • Loading branch information...
2 parents 58cd36c + c68e06f commit 50d39bc08aa97d5b0e79deb273e1ee81fdfe0a75 @miyagawa miyagawa committed May 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/XML/Atom/Content.pm
View
2 lib/XML/Atom/Content.pm
@@ -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.