diff options
Diffstat (limited to 'tests/getpart.pm')
-rw-r--r-- | tests/getpart.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm index 4d47736b6..83e56ca92 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -63,6 +63,10 @@ sub getpartattr { } last; } + # detect end of section when part wasn't found + elsif((1 ==$inside) && ($_ =~ /^ *\<\/$section\>/)) { + last; + } elsif((2 ==$inside) && ($_ =~ /^ *\<\/$part/)) { $inside--; } |