Branch Coverage

blib/lib/PDF/Builder/Content/Text.pm
Criterion Covered Total %
branch 92 1158 7.9


line true false branch
204 0 4 if (defined $opts{'-wordsp'} and not defined $opts{'wordsp'})
205 0 4 if (defined $opts{'-charsp'} and not defined $opts{'charsp'})
206 0 4 if (defined $opts{'-wordspa'} and not defined $opts{'wordspa'})
207 0 4 if (defined $opts{'-charspa'} and not defined $opts{'charspa'})
208 0 4 if (defined $opts{'-condw'} and not defined $opts{'condw'})
209 0 4 if (defined $opts{'-condc'} and not defined $opts{'condc'})
210 0 4 if (defined $opts{'-nocs'} and not defined $opts{'nocs'})
214 0 4 defined $opts{'wordsp'} ? :
216 0 4 defined $opts{'charsp'} ? :
218 0 4 defined $opts{'wordspa'} ? :
220 0 4 defined $opts{'charspa'} ? :
222 0 4 defined $opts{'condw'} ? :
224 0 4 defined $opts{'condc'} ? :
227 0 4 defined $opts{'nocs'} ? :
228 0 4 if ($nocs)
247 4 0 if (abs $overage > "0.1")
255 16 62 if ($chars[$i] eq " ")
261 0 4 if ($overage > 0) { }
264 0 0 if ($overage > 0 and $num_spaces > 0 and $condw > 0)
267 0 0 if ($val > $limit)
272 0 0 if ($overage > 0 and $num_chars > 0 and $condc > 0)
275 0 0 if ($val > $limit)
284 4 0 if ($overage > 0 and $num_spaces > 0 and $wordsp > 0)
287 1 3 if ($val > $limit)
292 1 0 if ($overage > 0 and $num_chars > 0 and $charsp > 0)
295 0 1 if ($val > $limit)
300 0 0 if ($overage > 0 and $num_spaces > 0 and $wordspa > 0)
303 0 0 if ($val > $limit)
308 0 0 if ($overage > 0 and $num_chars > 0 and $charspa > 0)
311 0 0 if ($val > $limit)
321 0 4 if ($overage > "0.1")
425 0 20 if (defined $opts{'-hyphenate'} and not defined $opts{'hyphenate'})
426 0 20 if (defined $opts{'-lang'} and not defined $opts{'lang'})
427 0 20 if (defined $opts{'-nosplit'} and not defined $opts{'nosplit'})
430 0 20 defined $opts{'hyphenate'} ? :
457 13 106 if $overflowed
461 13 7 if ($overflowed and not $over)
462 13 0 if ($hyphenate and @line == 1 or @line > 1)
476 0 20 if ($hyphenate and $overflowed)
488 0 0 if (@line) { }
498 0 0 if ($space > 0)
523 0 0 if ($@)
541 0 0 if (not @line) { }
545 0 0 if ($wordLeft eq '') { }
560 0 0 if ($wordLeft eq '') { }
566 0 0 if $wordRight ne ""
586 0 357 if ord $_ == 173
618 10 0 if (defined $opts{'-spillover'} and not defined $opts{'spillover'})
622 10 0 if $over eq ""
652 2 0 if (defined $opts{'-spillover'} and not defined $opts{'spillover'})
656 2 0 if $over eq ""
680 2 0 if (defined $opts{'-spillover'} and not defined $opts{'spillover'})
684 2 0 if $over eq ""
725 4 2 if (defined $opts{'-last_align'} and not defined $opts{'last_align'})
726 6 0 if (defined $opts{'-spillover'} and not defined $opts{'spillover'})
729 4 2 if (defined $opts{'last_align'})
730 0 4 if ($opts{'last_align'} =~ /^l/i) { }
2 2 elsif ($opts{'last_align'} =~ /^c/i) { }
2 0 elsif ($opts{'last_align'} =~ /^r/i) { }
738 6 0 if $over eq ""
741 3 3 if ($ret eq '') { }
744 1 2 if ($align eq 'l') { }
1 1 elsif ($align eq 'c') { }
856 12 0 if (@optsA % 2)
862 5 7 if (defined $opts{'-align'} and not defined $opts{'align'})
863 0 12 if (defined $opts{'-pndnt'} and not defined $opts{'pndnt'})
869 5 7 if (defined $opts{'align'})
870 0 5 if ($opts{'align'} =~ /^l/i) { }
1 4 elsif ($opts{'align'} =~ /^c/i) { }
1 3 elsif ($opts{'align'} =~ /^r/i) { }
3 0 elsif ($opts{'align'} =~ /^j/i) { }
876 0 12 defined $opts{'pndnt'} ? :
877 1 11 if ($align eq "c")
887 0 20 if ($indent > 0 and $first_line)
888 0 20 if ($indent < 0 and not $first_line)
890 0 0 if ($lw < $width and $align eq 'l' || $align eq 'j')
896 6 14 if ($align eq 'j') { }
2 12 elsif ($align eq 'r') { }
2 10 elsif ($align eq 'c') { }
910 3 17 if ($height -= $leading) < 0
913 6 6 if (wantarray)
972 0 2 if (defined $opts{'-pvgap'} and not defined $opts{'pvgap'})
975 0 2 defined $opts{'pvgap'} ? :
976 2 0 $pvgap >= 0 ? :
989 0 6 if (length $overflow > 0)
995 2 4 if (length $para > 0)
1009 0 0 if (length $para == 0 and $pvgap != 0 and $i < scalar(@paras) - 1 || $pvgapFlag)
1017 0 2 if (wantarray)
1123 0 0 if (defined $opts{'-rotate'} and not defined $opts{'rotate'})
1124 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
1125 0 0 if (defined $opts{'-strokecolor'} and not defined $opts{'strokecolor'})
1126 0 0 if (defined $opts{'-charspace'} and not defined $opts{'charspace'})
1127 0 0 if (defined $opts{'-hscale'} and not defined $opts{'hscale'})
1128 0 0 if (defined $opts{'-wordspace'} and not defined $opts{'wordspace'})
1129 0 0 if (defined $opts{'-render'} and not defined $opts{'render'})
1130 0 0 if (defined $opts{'-right'} and not defined $opts{'right'})
1131 0 0 if (defined $opts{'-center'} and not defined $opts{'center'})
1132 0 0 if (defined $opts{'-left'} and not defined $opts{'left'})
1133 0 0 if (defined $opts{'-align'} and not defined $opts{'align'})
1138 0 0 if defined $opts{'rotate'}
1141 0 0 if ($wastext)
1150 0 0 ref $opts{'color'} ? :
0 0 if defined $opts{'color'}
1151 0 0 ref $opts{'strokecolor'} ? :
0 0 if defined $opts{'strokecolor'}
1155 0 0 if defined $opts{'charspace'}
1156 0 0 if defined $opts{'hscale'}
1157 0 0 if defined $opts{'wordspace'}
1158 0 0 if defined $opts{'render'}
1160 0 0 if (defined $opts{'right'} and $opts{'right'} or defined $opts{'align'} and $opts{'align'} =~ /^r/i) { }
0 0 elsif (defined $opts{'center'} and $opts{'center'} or defined $opts{'align'} and $opts{'align'} =~ /^c/i) { }
0 0 elsif (defined $opts{'left'} and $opts{'left'} or defined $opts{'align'} and $opts{'align'} =~ /^l/i) { }
1178 0 0 if ($wastext)
1272 0 0 if (defined $opts{'font_size'})
1275 0 0 if (defined $opts{'leading'})
1278 0 0 if (defined $opts{'marker_width'})
1279 0 0 if (defined $opts{'marker_gap'})
1284 0 0 if (defined $opts{'restore'})
1290 0 0 if (defined $grfx and ref($grfx) =~ /^PDF::Builder::Content=HASH/) { }
1305 0 0 if defined $opts{'outline'}
1314 0 0 if defined $opts{'start_y'}
1315 0 0 if ($start_y != $col_max_y)
1327 0 0 if (defined $opts{'page'}) { }
1328 0 0 if (not ref $opts{'page'} eq 'ARRAY' && 7 == @{$opts{'page'};}) { }
1335 0 0 if (defined $ppn and not $ppn =~ /^[1-9]\d*$/)
1347 0 0 unless (defined $LR)
1348 0 0 if (defined $LR and $LR ne "L" and $LR ne "R")
1372 0 0 if (defined $opts{'state'} and ref $opts{'state'} eq "HASH")
1400 0 0 if ($rc > 1)
1406 0 0 if (defined $grfx and ref($grfx) =~ /^PDF::Builder::Content=HASH/) { }
1437 0 0 unless (defined $opts{'font_info'})
1442 0 0 if ($opts{'font_info'} eq '-fm-') { }
0 0 elsif ($opts{'font_info'} eq '-ext-') { }
1451 0 0 if ($pdf->get_external_font($text))
1462 0 0 if (@cur_font == 2)
1463 0 0 if (@cur_font == 1)
1464 0 0 if ("$cur_font[1]" eq "normal")
1465 0 0 if ("$cur_font[1]" eq "italic")
1466 0 0 if ("$cur_font[2]" eq "normal")
1467 0 0 if ("$cur_font[2]" eq "bold")
1469 0 0 if (@cur_font == 4)
1483 0 0 if (@cur_color == 1) { }
1532 0 0 if (defined $opts{'para'})
1546 0 0 if defined $opts{'color'}
1551 0 0 $cur_font[1] ? :
1553 0 0 $cur_font[2] ? :
1747 0 0 if (ref $mytext[$el] ne "HASH")
1748 0 0 if ($mytext[$el]{'tag'} eq "")
1751 0 0 unless (defined $tag)
1752 0 0 if ($tag =~ m[^/])
1756 0 0 if ($tag eq 'font') { }
0 0 elsif ($tag eq 'ol') { }
0 0 elsif ($tag eq 'ul') { }
0 0 elsif ($tag eq 'li') { }
0 0 elsif ($tag eq 'a') { }
0 0 elsif ($tag eq 'hr') { }
1757 0 0 if (defined $mytext[$el]{'face'})
1760 0 0 if (defined $mytext[$el]{'size'})
1766 0 0 if (defined $mytext[$el]{'type'})
1772 0 0 if (defined $mytext[$el]{'type'})
1782 0 0 if (defined $mytext[$el]{'href'})
1786 0 0 if (defined $mytext[$el]{'size'})
1793 0 0 if (defined $mytext[$el]{'style'})
1803 0 0 if (defined $mytext[$el]{'list-style-type'})
1804 0 0 if ($mytext[$el]{'list-style-type'} eq '1') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'A') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'a') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'I') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'i') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'upper-latin') { }
0 0 elsif ($mytext[$el]{'list-style-type'} eq 'lower-latin') { }
1830 0 0 if ($tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults" or $tag eq "style")
1862 0 0 if ($tagname eq "tag")
1863 0 0 if ($tagname eq "text")
1869 0 0 if ($propname eq $supported_properties[$sup])
1874 0 0 unless ($found)
1885 0 0 if ($tag eq "" or substr($tag, 0, 1) eq "/")
1887 0 0 unless (defined $style)
1895 0 0 if ($propname eq $supported_properties[$sup])
1900 0 0 unless ($found)
1927 0 0 if (defined $optpage)
1991 0 0 if (ref $mytext[$el] ne "HASH")
1992 0 0 unless (keys %{$mytext[$el];})
1994 0 0 if ($mytext[$el]{'tag'} ne '') { }
2005 0 0 if (substr($tag, 0, 1) ne '/') { }
2034 0 0 if (@properties > 1) { }
2040 0 0 if defined $mytext[1]{'body'}{'font-size'}
2055 0 0 if (defined $mytext[$el]{'class'})
2062 0 0 if (defined $mytext[$el]{'id'})
2076 0 0 if (defined $properties[-1]{'text-height'})
2085 0 0 if $fs == -1
2101 0 0 if (defined $properties[-1]{'list-style-position'} and $properties[-1]{'list-style-position'} ne "inside" and $properties[-1]{'list-style-position'} ne "outside")
2114 0 0 if ($properties[-1]{'display'} eq "block")
2126 0 0 $tag eq 'p' && defined $mytext[$el]{'cont'} && $mytext[$el]{'cont'} ? :
2127 0 0 if $pcont
2141 0 0 if ($tag eq 'p') { }
0 0 elsif ($tag eq 'i') { }
0 0 elsif ($tag eq 'em') { }
0 0 elsif ($tag eq 'b') { }
0 0 elsif ($tag eq 'strong') { }
0 0 elsif ($tag eq 'font') { }
0 0 elsif ($tag eq 'span') { }
0 0 elsif ($tag eq 'ul') { }
0 0 elsif ($tag eq '_sl') { }
0 0 elsif ($tag eq 'ol') { }
0 0 elsif ($tag eq 'a') { }
0 0 elsif ($tag eq 'code') { }
0 0 elsif ($tag eq 'blockquote') { }
0 0 elsif ($tag eq 'li') { }
0 0 elsif ($tag eq 'h1') { }
0 0 elsif ($tag eq 'h2') { }
0 0 elsif ($tag eq 'h3') { }
0 0 elsif ($tag eq 'h4') { }
0 0 elsif ($tag eq 'h5') { }
0 0 elsif ($tag eq 'h6') { }
0 0 elsif ($tag eq 'hr') { }
0 0 elsif ($tag eq 'u') { }
0 0 elsif ($tag eq 'ins') { }
0 0 elsif ($tag eq 's') { }
0 0 elsif ($tag eq 'strike') { }
0 0 elsif ($tag eq 'del') { }
0 0 elsif ($tag eq 'style') { }
0 0 elsif ($tag eq '_marker') { }
0 0 elsif ($tag eq '_move') { }
0 0 elsif ($tag eq '_ref') { }
0 0 elsif ($tag eq '_reft') { }
0 0 elsif ($tag eq '_nameddest') { }
2147 0 0 if (defined $mytext[$el]{'cont'} and $mytext[$el]{'cont'})
2176 0 0 if (defined $mytext[$el]{'start'})
2179 0 0 if (defined $mytext[$el]{'reversed'}) { }
2202 0 0 if ($properties[-1]{'list-style-position'} eq 'inside') { }
0 0 elsif ($properties[-1]{'list-style-position'} eq 'outside') { }
2223 0 0 if ($vmargin[0] != 0 or $vmargin[1] != 0)
2224 0 0 unless ($topCol)
2244 0 0 if ($properties[-1]{'width'} > 0 and $properties[-1]{'width'} < $width)
2249 0 0 if (defined $mytext[$el]{'align'})
2252 0 0 if ($align eq 'left') { }
0 0 elsif ($align eq 'right') { }
2257 0 0 if ($align ne "center")
2329 0 0 if (defined $properties[-1]{'_marker-text'} and $properties[-1]{'_marker-text'} ne '') { }
2336 0 0 if (defined $mytext[$el + 3]{'value'})
2341 0 0 if (defined $mytext[$el + 3]{'type'})
2352 0 0 if (substr($list_marker, 0, 1) eq '.') { }
2356 0 0 if ($reversed_ol) { }
2365 0 0 if ($properties[-1]{'_marker-align'} eq 'left') { }
0 0 elsif ($properties[-1]{'_marker-align'} eq 'center') { }
2382 0 0 if ($list_marker eq '.none' or $list_marker =~ /^ *$/) { }
2391 0 0 if (defined $properties[-1]{'_marker-color'} and $properties[-1]{'_marker-color'} ne "")
2396 0 0 if (defined $properties[-1]{'_marker-font'} and $properties[-1]{'_marker-font'} ne "")
2401 0 0 if (defined $properties[-1]{'_marker-style'} and $properties[-1]{'_marker-style'} ne "")
2406 0 0 if (defined $properties[-1]{'_marker-size'} and $properties[-1]{'_marker-size'} ne "")
2411 0 0 if (defined $properties[-1]{'_marker-weight'} and $properties[-1]{'_marker-weight'} ne "")
2419 0 0 if ($list_marker ne '') { }
2425 0 0 if ($list_marker =~ /^\./) { }
2429 0 0 if ($list_marker eq '.disc') { }
0 0 elsif ($list_marker eq '.circle') { }
0 0 elsif ($list_marker eq '.square') { }
0 0 elsif ($list_marker eq '.box') { }
0 0 elsif ($list_marker eq '.none') { }
2443 0 0 if ($list_marker ne '') { }
2467 0 0 if ($mytext[$el + 1]{'text'} =~ /^ *$/)
2483 0 0 unless (defined $y)
2487 0 0 unless (defined $x)
2499 0 0 if (defined $mytext[$el]{'x'})
2503 0 0 if ($attr =~ /^(-?[\d.]+)(pt$|%$|$)/i)
2506 0 0 if ($attru eq '%') { }
2516 0 0 if (defined $mytext[$el]{'dx'})
2521 0 0 if ($attr =~ /^(-?[\d.]+)(pt$|%$|$)/i)
2524 0 0 if ($attru eq '%') { }
2549 0 0 unless (defined $tgtid)
2554 0 0 if $title eq ""
2561 0 0 if ($tgtid =~ /^#[^#]/)
2565 0 0 if (@fields == 1) { }
0 0 elsif (@fields == 3 or @fields == 4) { }
2567 0 0 if ($tgtid =~ /^#[1-9]\d*$/) { }
2578 0 0 if ($fields[0] =~ /^#[1-9]\d*$/) { }
2581 0 0 if (@fields == 3)
2582 0 0 if ($fields[3] eq "undef")
2596 0 0 if ($tgtid =~ /##/) { }
0 0 elsif ($tgtid =~ /#/) { }
2619 0 0 if ($pass_count == 1 and defined $sindex) { }
2643 0 0 if defined $sindex
2656 0 0 if (defined $state->{'xreft'}{'_reft'}{$tid}) { }
2662 0 0 if (defined $tptr)
2664 0 0 if ($sptr->{'title'} eq "[no title given]" and $tptr->{'title'} ne "[no title given]")
2680 0 0 if $sptr->{'tppn'} == -1
2710 0 0 unless (defined $id)
2719 0 0 unless (defined $name)
2744 0 0 unless (defined $bad_tags{$tag})
2756 0 0 if (defined $state and exists $mytext[$el]{'id'})
2760 0 0 unless defined $title
2773 0 0 if ($tag eq $xtag)
2780 0 0 unless (defined $tptr)
2791 0 0 if ($title eq "")
2794 0 0 if ($tag =~ /^h\d$/ or $tag eq "_part" or $tag eq "_chap")
2816 0 0 if ($state->{'xrefs'}[$sindex]{'id'} eq $id)
2821 0 0 if ($sptr->{'title'} eq "[no title given]" and $tptr->{'title'} ne "[no title given]")
2827 0 0 if $another_pass
2836 0 0 if $sptr->{'tfn'} eq ""
2838 0 0 if $sptr->{'tfpn'} eq ""
2840 0 0 if $sptr->{'tppn'} < 1
2849 0 0 if (defined $mytext[$el]{'empty_element'})
2878 0 0 if ($tag eq 'ul') { }
0 0 elsif ($tag eq '_sl') { }
0 0 elsif ($tag eq 'ol') { }
0 0 elsif ($tag eq '_marker') { }
2898 0 0 if ($current_prop->{'display'} eq "block")
2914 0 0 if ($mytext[$first]{'text'} eq "" and $mytext[$first]{'tag'} eq $tag)
2928 0 0 if (@mytext == 2)
2941 0 0 if ($mytext[$el]{'text'} eq "\n")
2942 0 0 if ($mytext[$el]{'text'} eq "")
2950 0 0 if ($vmargin[0] != 0 or $vmargin[1] != 0)
2951 0 0 unless ($topCol)
2966 0 0 if ($properties[-1]{'font-family'} ne $current_prop->{'font-family'})
2971 0 0 if ($properties[-1]{'font-style'} ne $current_prop->{'font-style'})
2976 0 0 if ($properties[-1]{'font-weight'} ne $current_prop->{'font-weight'})
2991 0 0 if ($newval != $current_prop->{'font-size'})
3002 0 0 if ($call_get_font)
3007 0 0 $current_prop->{'font-style'} eq 'normal' ? :
0 0 $current_prop->{'font-weight'} eq 'normal' ? :
3015 0 0 if ($properties[-1]{'color'} ne $current_prop->{'color'})
3019 0 0 if (defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/)
3047 0 0 if defined $properties[-1]{'list-style-position'}
3082 0 0 if (defined $mytext[$el]{'annot'})
3111 0 0 if ($need_line) { }
3113 0 0 if ($topCol)
3125 0 0 if ($start_y - $add_y - $asc + $desc < $min_y)
3146 0 0 if (defined $desired_x)
3172 0 0 if (defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/) { }
3198 0 0 if ($align eq 'c' or $align eq 'center') { }
0 0 elsif ($align eq 'r' or $align eq 'right') { }
3200 0 0 if ($x + $x_adj < $start_x)
3203 0 0 if ($x + $x_adj + $w > $endx)
3209 0 0 if ($x + $x_adj < $start_x)
3212 0 0 if ($x + $x_adj + $w > $endx)
3224 0 0 if ($x + $w <= $endx) { }
3229 0 0 if ($current_prop->{'text-decoration'} ne "none")
3243 0 0 if ($phrase =~ /(\s+)$/)
3253 0 0 if ($current_prop->{'text-decoration'} =~ /underline/)
3258 0 0 if ($current_prop->{'text-decoration'} =~ /line-through/)
3264 0 0 if ($current_prop->{'text-decoration'} =~ /overline/)
3294 0 0 if (defined $click_ele)
3302 0 0 if ($x_adj or $y_adj)
3307 0 0 if ($current_prop->{'_href'} ne "")
3319 0 0 if ($href =~ /^#/) { }
3322 0 0 if ($href =~ /^#(\d+)$/) { }
0 0 elsif ($href =~ /^#(\d+)-(\d+)-(\d+)$/) { }
0 0 elsif ($href =~ /^#(\d+)-(\d+)-(\d+)-(.+)$/) { }
3338 0 0 if ($zoom <= 0)
3348 0 0 if ($pageno < 1)
3352 0 0 if (defined $xpos and $xpos < 0)
3356 0 0 if (defined $ypos and $ypos < 0)
3362 0 0 unless (defined $tgt_page)
3367 0 0 if (not defined $xpos) { }
3389 0 0 if (defined $click_ele)
3412 0 0 if ($phrase ne "")
3425 0 0 if ($phrase =~ s/(\s+)$//) { }
3436 0 0 if ($full_line and index($word, " ") == -1)
3442 0 0 if ($wordLeft eq "")
3446 0 0 if ($wordLeft eq "")
3460 0 0 if ($phrase =~ s/(\S+)$//)
3469 0 0 if ($mytext[$ptag]{'text'} ne "")
3470 0 0 if ($mytext[$ptag]{'tag'} ne "p")
3475 0 0 if ($phrase eq "" and $remainder ne "")
3492 0 0 if ($phrase eq "")
3511 0 0 if ($phrase ne '') { }
3533 0 0 if ($#mytext == 0) { }
3538 0 0 if ($restore == 0) { }
0 0 elsif ($restore == 1) { }
3542 0 0 if ($properties[-1]{'font-family'} ne $current_prop->{'font-family'})
3547 0 0 if ($properties[-1]{'font-style'} ne $current_prop->{'font-style'})
3552 0 0 if ($properties[-1]{'font-weight'} ne $current_prop->{'font-weight'})
3567 0 0 if ($newval != $current_prop->{'font-size'})
3574 0 0 if ($call_get_font)
3578 0 0 $current_prop->{'font-style'} eq 'normal' ? :
0 0 $current_prop->{'font-weight'} eq 'normal' ? :
3585 0 0 if ($properties[-1]{'color'} ne $current_prop->{'color'})
3589 0 0 if (defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/)
3607 0 0 if ($restore == 0 or $restore == 1) { }
3675 0 0 if (defined $selector)
3676 0 0 if ($selector =~ /^tag:(.+)$/)
3682 0 0 if (defined $selector) { }
3683 0 0 if (defined $source->{$selector})
3688 0 0 if ($_ eq 'text-decoration') { }
3690 0 0 if (defined $target->{$_} and $target->{$_} ne 'none') { }
3702 0 0 if ($tag_sel eq "text" or $tag_sel eq "tag")
3703 0 0 if ($tag_sel eq "cont")
3704 0 0 if ($tag_sel eq "body")
3705 0 0 if (ref $source->{$tag_sel} ne 'HASH') { }
3716 0 0 if (defined $source->{'body'})
3731 0 0 if $leading <= 0
3732 0 0 if $leading < 1
3755 0 0 unless (defined $opts{'rect'})
3764 0 0 if (defined $opts{'relative'})
3766 0 0 if @relative < 2 or @relative > 4
3772 0 0 if (@relative == 3)
3775 0 0 if (@relative == 4)
3802 0 0 if ($draw_outline ne "none" and defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/)
3824 0 0 if ($i == 0) { }
3876 0 0 if defined $opts{'page_numbers'}
3880 0 0 if ($markup eq 'pre') { }
0 0 elsif ($markup eq 'none') { }
0 0 elsif ($markup eq 'md1') { }
3886 0 0 if (ref $text eq '') { }
0 0 elsif (ref $text eq 'ARRAY') { }
3906 0 0 if (ref $text eq '') { }
0 0 elsif (ref $text eq 'ARRAY') { }
3931 0 0 if (ref $text eq '') { }
0 0 elsif (ref $text eq 'ARRAY') { }
3957 0 0 if ($_ =~ /^\s*$/) { }
3959 0 0 if ($in_para)
3969 0 0 if ($in_para) { }
3984 0 0 if ($in_para)
4001 0 0 if defined $opts{'page_numbers'}
4009 0 0 unless (defined $rc)
4010 0 0 if ($rc)
4012 0 0 if ("version"->parse("v$Text::Markdown::VERSION")->numify < "version"->parse("v$TextMarkdown")->numify)
4016 0 0 if ($rc) { }
4043 0 0 if ($html =~ s/~~([^~])/<del>$1/)
4148 0 0 if (defined $opts{'substitute'})
4168 0 0 unless (defined $rc)
4169 0 0 if ($rc)
4171 0 0 if ("version"->parse("v$HTML::TreeBuilder::VERSION")->numify < "version"->parse("v$HTMLTreeBldr")->numify)
4175 0 0 if ($rc) { }
4194 0 0 if (defined $head and defined $head->{'_content'})
4200 0 0 if ($style_text ne "")
4202 0 0 if (defined $array[$el - 1]{'tag'} and $array[$el - 1]{'tag'} eq "style")
4217 0 0 if ($style_text ne "")
4219 0 0 if (defined $array[$el - 1]{'tag'} and $array[$el - 1]{'tag'} eq "style")
4235 0 0 if (defined $opts{'style'})
4264 0 0 if (ref $mytext[$el] ne "HASH")
4265 0 0 if ($mytext[$el]{'tag'} eq "")
4269 0 0 unless (defined $tag)
4272 0 0 if ($tag eq 'li') { }
0 0 elsif ($tag eq 'ul') { }
0 0 elsif ($tag eq 'ol') { }
0 0 elsif ($tag eq '_sl') { }
0 0 elsif ($tag eq '/_sl' or $tag eq '/ol' or $tag eq '/ul') { }
0 0 elsif ($tag eq '_ref') { }
0 0 elsif ($tag eq '/_ref') { }
0 0 elsif ($tag eq '_reft') { }
0 0 elsif ($tag eq '/_reft') { }
0 0 elsif ($tag eq '_nameddest') { }
0 0 elsif ($tag eq '/_nameddest') { }
0 0 elsif ($tag eq '/_move') { }
0 0 elsif ($tag eq 'a') { }
4291 0 0 if ($mytext[$el - 1]{'tag'} eq '/_marker') { }
0 0 elsif ($mytext[$el - 1]{'tag'} eq '_marker') { }
4293 0 0 if ($mytext[$el - 2]{'tag'} eq '') { }
4296 0 0 if ($current_list[-1] eq "s")
4337 0 0 unless (defined $mytext[$el]{'tgtid'})
4344 0 0 if ($tgtid =~ /^#[^#]/)
4346 0 0 if ($tgtid =~ /^#\d+-?/) { }
4359 0 0 if ($mytext[$el + 1]{'tag'} eq '/_ref') { }
0 0 elsif ($mytext[$el + 1]{'tag'} eq '' and $mytext[$el + 1]{'text'} ne '') { }
0 0 elsif ($mytext[$el + 1]{'tag'} eq '' and $mytext[$el + 1]{'text'} eq '') { }
4376 0 0 if ($mytext[++$el]{'tag'} ne "/_ref")
4385 0 0 if ($page_numbers != 0 and not $mytext[$el]{'tgtid'} =~ /#[^#]/)
4398 0 0 if ($mytext[$el + 1]{'tag'} eq '' and $mytext[$el + 2]{'tag'} eq '/_reft') { }
0 0 elsif ($mytext[$el + 1]{'tag'} eq '/_reft') { }
4410 0 0 if ($mytext[$el + 1]{'tag'} eq '' and $mytext[$el + 2]{'tag'} eq '/_nameddest') { }
0 0 elsif ($mytext[$el + 1]{'tag'} eq '/_nameddest') { }
4416 0 0 if (defined $debug and $debug == 1)
4435 0 0 if ($mytext[$el]{'href'} =~ m[^[a-z0-9]+://]i) { }
4442 0 0 if ($mytext[$el + 1]{'tag'} ne "")
4449 0 0 if ($mytext[$i]{'tag'} eq "/a")
4464 0 0 if ($newtitle eq "")
4467 0 0 unless (defined $mytext[$el]{'title'})
4471 0 0 if ($mytext[$el + 1]{'text'} eq "")
4476 0 0 if (defined $mytext[$el]{'fit'}) { }
4479 0 0 if ($newfit ne "")
4485 0 0 if (defined $mytext[$el]{'id'}) { }
4488 0 0 if ($newid ne "")
4494 0 0 if ($mytext[$el + 1]{'text'} eq "" and defined $mytext[$el]{'title'})
4506 0 0 if ($mytext[$el]{'tag'} eq "h1" or $mytext[$el]{'tag'} eq "h2" or $mytext[$el]{'tag'} eq "h3" or $mytext[$el]{'tag'} eq "h4" or $mytext[$el]{'tag'} eq "h5" or $mytext[$el]{'tag'} eq "h6" or $mytext[$el]{'tag'} eq "a" or $mytext[$el]{'tag'} eq "span" or $mytext[$el]{'tag'} eq "p" or $mytext[$el]{'tag'} eq "li" or $mytext[$el]{'tag'} eq "i" or $mytext[$el]{'tag'} eq "em" or $mytext[$el]{'tag'} eq "b" or $mytext[$el]{'tag'} eq "strong" or $mytext[$el]{'tag'} eq "del" or $mytext[$el]{'tag'} eq "sub" or $mytext[$el]{'tag'} eq "sup" or $mytext[$el]{'tag'} eq "mark" or $mytext[$el]{'tag'} eq "blockquote" or $mytext[$el]{'tag'} eq "dt" or $mytext[$el]{'tag'} eq "dd" or $mytext[$el]{'tag'} eq "code" or $mytext[$el]{'tag'} eq "pre" or $mytext[$el]{'tag'} eq "img" or $mytext[$el]{'tag'} eq "th" or $mytext[$el]{'tag'} eq "td")
4533 0 0 if ($newid ne "" and not defined $mytext[$el]{'id'})
4546 0 0 if (defined $mytext[$el]{'id'} and defined $debug and $debug == 1)
4573 0 0 if ($text =~ s/^\s+//)
4574 0 0 if ($text eq "")
4576 0 0 if ($text =~ s/([^\s]+)//)
4579 0 0 if ($text =~ s/^\s*{//)
4580 0 0 if ($text eq "")
4585 0 0 if ($text =~ s/([^}]+)//)
4588 0 0 if ($text =~ s/^}\s*//)
4589 0 0 if ($text eq "")
4608 0 0 unless (defined $property_name and defined $value)
4615 0 0 if ($value =~ s/^['"]//)
4643 0 0 if ($element =~ /^HTML::Element=HASH/) { }
4657 0 0 if ($tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults" or $tag eq "style")
4671 0 0 if ($element->{$key} eq "/")
4674 0 0 if ($key =~ /^_/)
4680 0 0 if (not $no_content and defined $element->{'_content'}) { }
4685 0 0 if ($_ =~ /^HTML::Element=HASH/) { }
4698 0 0 unless ($no_content)
4727 0 0 unless defined $length
4732 0 0 if (defined $opts{'parent_size'})
4738 0 0 if defined $opts{'usage'}
4743 0 0 if ($length =~ /^(-?\d+\.?\d*)(.*)$/) { }
0 0 elsif ($length =~ /^(-?\.\d+)(.*)$/) { }
4755 0 0 if ($unit eq '') { }
0 0 elsif ($unit eq 'pt') { }
0 0 elsif ($unit eq '%') { }
0 0 elsif ($unit eq 'em') { }
0 0 elsif ($unit eq 'en' or $unit eq 'ex') { }
0 0 elsif ($unit eq 'in') { }
0 0 elsif ($unit eq 'cm') { }
0 0 elsif ($unit eq 'mm') { }
0 0 elsif ($unit eq 'px') { }
4826 0 0 unless (defined $suffix)
4827 0 0 unless (defined $prefix)
4831 0 0 if ($type eq 'a') { }
0 0 elsif ($type eq 'A') { }
0 0 elsif ($type eq 'i') { }
0 0 elsif ($type eq 'I') { }
0 0 elsif ($type eq '1') { }
4844 0 0 if ($type eq 'decimal' or $type eq 'arabic') { }
0 0 elsif ($type eq 'upper-roman' or $type eq 'lower-roman') { }
0 0 elsif ($type eq 'upper-alpha' or $type eq 'lower-alpha') { }
0 0 elsif ($type eq 'disc') { }
0 0 elsif ($type eq 'circle') { }
0 0 elsif ($type eq 'square') { }
0 0 elsif ($type eq 'box') { }
0 0 elsif ($type eq '.u') { }
0 0 elsif ($type eq '.o') { }
0 0 elsif ($type eq 'none') { }
4849 0 0 if ($value >= 900)
4850 0 0 if ($value >= 500)
4851 0 0 if ($value >= 400)
4853 0 0 if ($value >= 90)
4854 0 0 if ($value >= 50)
4855 0 0 if ($value >= 40)
4857 0 0 if ($value == 9)
4858 0 0 if ($value >= 5)
4859 0 0 if ($value == 4)
4861 0 0 if ($type eq "lower-roman")
4871 0 0 if ($type eq "lower-alpha")
4890 0 0 if ($depth % 4 == 1) { }
0 0 elsif ($depth % 4 == 2) { }
0 0 elsif ($depth % 4 == 3) { }
0 0 elsif ($depth % 4 == 0) { }
4973 0 0 if ($asc > $o_asc) { }
4978 0 0 if ($desc < $o_desc) { }
4983 0 0 if ($desc_leading < $o_desc_leading) { }
4989 0 0 if ($need_revise)
4996 0 0 if ($start_y - $asc + $desc < $min_y) { }
5017 0 0 if ($x > $endx) { }
0 0 elsif ($x + $text_w > $endx) { }
5035 0 0 if ($i == -1)
5063 0 0 if ($i == -1)
5139 0 0 if (not $rc or $pass_count == $max_passes)
5143 0 0 if (defined $opts{'deltas'} and ref $opts{'deltas'} eq "ARRAY")
5145 0 0 if (@deltas == 2)
5157 0 0 if (defined $opts{'debug'} and $opts{'debug'} == 1) { }
5210 0 0 if ($sppn != $cur_src_page)
5219 0 0 if ($tid =~ /^#[^#]/) { }
0 0 elsif ($tid =~ /^##/) { }
5224 0 0 if $fit eq ""
5225 0 0 if ($tfn eq '') { }
5227 0 0 if ($tppn != $cur_tgt_page)
5245 0 0 if ($tfn eq '') { }
5257 0 0 if ($fit eq "")
5265 0 0 if ($tppn =~ /^\d+$/ and $tppn != $cur_tgt_page)
5286 0 0 if ($fit eq "")
5299 0 0 if ($fits[$i] eq "undef")
5362 0 0 if ($mytext->[$elx]{'tag'} eq "/$tags[0]" and scalar @tags == 1)
5365 0 0 if ($mytext->[$elx]{'tag'} eq "")
5370 0 0 if ($mytext->[$elx]{'tag'} =~ m[^/])
5398 0 0 if (@tags == 1 and $mytext->[$elx]{'tag'} eq "/$tags[0]")
5400 0 0 if ($mytext->[$elx]{'tag'} eq "")
5404 0 0 if ($start > -1)
5407 0 0 if ($end > -1)
5415 0 0 if ($start > 0 and substr($text, $start - 1, 1) eq " ")
5419 0 0 if ($end < length($text) - 1 and substr($text, $end + 1, 1) eq " ")
5424 0 0 if ($start == 0) { }
0 0 elsif ($end == length($text) - 1) { }
0 0 elsif ($space_before and $space_after) { }
5426 0 0 if ($space_after)
5430 0 0 if ($space_before)
5448 0 0 if ($mytext->[$elx]{'tag'} =~ m[^/])