Differential D20965 Diff 49957 src/infrastructure/markup/blockrule/PhutilRemarkupQuotedBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/blockrule/PhutilRemarkupQuotedBlockRule.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | if ($strip_space) { | ||||
$text[$key] = substr($line, 1); | $text[$key] = substr($line, 1); | ||||
} | } | ||||
} | } | ||||
// Strip leading empty lines. | // Strip leading empty lines. | ||||
foreach ($text as $key => $line) { | foreach ($text as $key => $line) { | ||||
if (!strlen(trim($line))) { | if (!strlen(trim($line))) { | ||||
unset($text[$key]); | unset($text[$key]); | ||||
} else { | |||||
break; | |||||
} | } | ||||
} | } | ||||
return implode('', $text); | return implode('', $text); | ||||
} | } | ||||
final protected function getQuotedText($text) { | final protected function getQuotedText($text) { | ||||
$text = rtrim($text, "\n"); | $text = rtrim($text, "\n"); | ||||
Show All 32 Lines |