From 244ea0aaa692761dc89798d8c98b3b39bc19e22e Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Tue, 27 Mar 2018 12:11:00 +0100 Subject: [PATCH] Remove some whitespace --- Parsedown.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index b5fb584..fdc2aa6 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -586,22 +586,17 @@ class Parsedown $requiredIndent = ($Block['indent'] + strlen($Block['data']['marker'])); - if ( - $Line['indent'] < $requiredIndent - and - ( + if ($Line['indent'] < $requiredIndent + and ( ( $Block['data']['type'] === 'ol' and preg_match('/^[0-9]+'.preg_quote($Block['data']['markerType']).'(?:[ ]+(.*)|$)/', $Line['text'], $matches) - ) - or - ( + ) or ( $Block['data']['type'] === 'ul' and preg_match('/^'.preg_quote($Block['data']['markerType']).'(?:[ ]+(.*)|$)/', $Line['text'], $matches) ) ) - ) - { + ) { if (isset($Block['interrupted'])) { $Block['li']['text'] []= '';