Formatting fix

This commit is contained in:
Aidan Woods 2019-09-09 23:27:58 +01:00
parent bfdd0f29bc
commit 0a1e4bd802
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -161,10 +161,11 @@ final class Markup implements ContinuableBlock
return new self($rawLine, 6);
}
if (! $isClosing && \preg_match(
'/^(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*(?:[ ]*+)[\/]?+[>](.*+)$/',
$tail,
$matches
if (
! $isClosing && \preg_match(
'/^(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*(?:[ ]*+)[\/]?+[>](.*+)$/',
$tail,
$matches
) || $isClosing && \preg_match(
'/^(?:[ ]*+)[\/]?+[>](.*+)$/',
$tail,