Skip to content

Commit

Permalink
Resolving issues with "swallowed" lines in missa
Browse files Browse the repository at this point in the history
  • Loading branch information
FAJ-Munich committed Oct 18, 2024
1 parent 7b5f767 commit afc9e48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/cgi-bin/missa/ordo.pl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ sub resolve_refs {

# Connect lines marked by tilde.
if ($merge_with_next && $it < $#t) {
$merged_lines = $line . ' ';
$merged_lines .= $line . ' ';
} else {
push @resolved_lines, $merged_lines . $line;
$merged_lines = '';
Expand All @@ -204,11 +204,11 @@ sub resolve_refs {

# Concatenate the expansions of the lines with a line break between each.
push @resolved_lines, '';
my $resolved_block = join "<br/>\n", @resolved_lines;
my $resolved_block = join "<br\/>\n", @resolved_lines;

#removes occasional double linebreaks
$resolved_block =~ s/\<BR\/\>\s*\<BR\/\>/\<BR\/\>/g;
$resolved_block =~ s/<\/P>\s*<BR\/>/<\/P>/g;
$resolved_block =~ s/\<br\/\>\s*\<br\/\>/\<br\/\>/ig;
$resolved_block =~ s/<\/P>\s*<br\/>/<\/P>/gi;
return $resolved_block;
}

Expand Down

0 comments on commit afc9e48

Please sign in to comment.