Skip to content

Commit

Permalink
better honor --omit=Span in XML serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Oct 25, 2023
1 parent 45a88f5 commit 0d9b55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDF/Tags/XML-Writer.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ method !marked-content(PDF::Tags::Mark $node, :$depth!) {
my $omit-tag = ! $!marks;
$omit-tag ||= $name ~~ $_ with $!omit;
if $omit-tag {
if $!atts {
if $!atts && $!omit !~~ 'Span' {
# try to retain content-level language tags
my $Lang := .<Lang>
with $node.attributes;
Expand Down

0 comments on commit 0d9b55f

Please sign in to comment.