diff --git a/lib/PDF/Tags/XML-Writer.rakumod b/lib/PDF/Tags/XML-Writer.rakumod index 8607843..168c3ee 100644 --- a/lib/PDF/Tags/XML-Writer.rakumod +++ b/lib/PDF/Tags/XML-Writer.rakumod @@ -130,10 +130,15 @@ method !actual-text($node) { multi sub inlined-elem(Str $name, %atts) { with %atts { - when 'Inline' { return True } - when 'Block' { return False } + # From PDF 2.0 Table 387 Standard layout attributes common to all standard structure types, + # regarding 'Placement': + # "When applied to an ILSE, any value except Inline shall cause the + # element to be treated as a BLSE instead" + $_ eq 'Inline' + } + else { + InlineElemTags($name).so; } - InlineElemTags($name).so; } sub find-href($node) {