@@ 2000-2001 (lines=2) @@ | ||
1997 | # |
|
1998 | # Increase/decrease nested tag count. |
|
1999 | # |
|
2000 | if ($tag{1} == '/') $depth--; |
|
2001 | else if ($tag{strlen($tag)-2} != '/') $depth++; |
|
2002 | ||
2003 | if ($depth < 0) { |
|
2004 | # |
|
@@ 2128-2129 (lines=2) @@ | ||
2125 | # the tag's name match base tag's. |
|
2126 | # |
|
2127 | if (preg_match('{^</?'.$base_tag_name_re.'\b}', $tag)) { |
|
2128 | if ($tag{1} == '/') $depth--; |
|
2129 | else if ($tag{strlen($tag)-2} != '/') $depth++; |
|
2130 | } |
|
2131 | ||
2132 | # |