\n";
$openTestament = 1;
}
elsif ($key eq "\[ Testament 2 Heading \]") {
closeVers();
closeChap();
closeBook();
if ($openTestament == 1) {
print OUTF "<\/div>\n"; # close OT (bookGroup)
}
print OUTF "
\n";
$openTestament = 1;
}
}
elsif ($line !~ /^\s*$/) {
print OUTF "$line\n";
}
}
closeVers();
closeChap();
closeBook();
if ($openTestament == 1) {
print OUTF "<\/div>\n"; # close NT (bookGroup)
}
print OUTF "<\/osisText>\n";
print OUTF "<\/osis>\n";
close (OUTF);
close (INF);