Skip to content

Commit

Permalink
zap xmlobj string comparison bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tla committed Apr 18, 2012
1 parent 0abd670 commit 743dba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpan/Text-TEI-Markup/lib/Text/TEI/Markup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Exporter 'import';
use Scalar::Util;
use XML::LibXML;

$VERSION = '1.6';
$VERSION = '1.7';
@EXPORT_OK = qw( &to_xml &word_tag_wrap );

=head1 NAME
Expand Down Expand Up @@ -495,10 +495,10 @@ sub word_tag_wrap {
$doc = $parser->parse_string( $xml );
$root = $doc->getDocumentElement();
} elsif( ref( $xml ) eq 'XML::LibXML::Document' ) {
$ret = $xml;
$ret = 'xml';
$root = $xml->getDocumentElement();
} elsif( ref( $xml ) eq 'XML::LibXML::Element' ) {
$ret = $xml;
$ret = 'xml';
$root = $xml;
} else {
die "Passed argument is neither string, Document, or Element";
Expand Down

0 comments on commit 743dba1

Please sign in to comment.