Skip to content

Commit 4bed883

Browse files
authoredMar 27, 2025··
MC/DC layout bug fix. (#396)
Signed-off-by: Henry Cox <henry.cox@mediatek.com>
1 parent 51515e7 commit 4bed883

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎bin/genhtml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11309,8 +11309,12 @@ sub write_source_line(*$$$$$$$)
1130911309
if ($mc) {
1131011310
# space over far enough to line up with MC/DC extension column
1131111311
# remove the span and other HTML
11312-
(my $s = $br) =~ s/(<\/span>|<span.+?>)//g;
11312+
my $s = $br;
11313+
foreach my $tag ('a', 'span') {
11314+
$s =~ s/(<\/$tag>|<$tag.+?>)//g;
11315+
}
1131311316
$br .= ' ' x ($br_field_width - length($s)) . ' ';
11317+
die("unexpected lengths") unless $br_field_width >= length($s);
1131411318
}
1131511319
write_html($handle,
1131611320
"$html_continuation_leader$lineNumSpan" .

0 commit comments

Comments
 (0)
Please sign in to comment.