Skip to content

Commit

Permalink
Merge pull request #1121 from Alex-Jordan/hotfix/ptx-cell-attributes
Browse files Browse the repository at this point in the history
PTX: when removing unwanted p in a cell... (hotfix of #1120)
  • Loading branch information
drgrice1 authored Sep 17, 2024
2 parents 1931eef + 011a5ab commit ba43bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/core/PGbasicmacros.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,7 @@ sub PTX_cleanup {
do {
$previous = $string;
$string =~
s/(?s)(<tabular[^>]*>(?:\s|<col (?:(?!width=").)*?>)((?!<\/tabular>).)*?<cell>((?!<\/tabular>).)*?)<p>(((?!<\/tabular>).)*?)<\/p>(((?!<\/tabular>).)*?<\/tabular>)/$1$4$6/g;
s/(?s)(<tabular[^>]*>(?:\s|<col (?:(?!width=").)*?>)((?!<\/tabular>).)*?<cell[^>]*>((?!<\/tabular>).)*?)<p>(((?!<\/tabular>).)*?)<\/p>(((?!<\/tabular>).)*?<\/tabular>)/$1$4$6/g;
} until ($previous eq $string);

}
Expand Down

0 comments on commit ba43bdb

Please sign in to comment.