Revert "Preserve lone breaks in projects description"
This reverts commit 87e0a26d24.
This commit is contained in:
@@ -3,22 +3,6 @@
|
|||||||
final class PhabricatorProjectDescriptionField
|
final class PhabricatorProjectDescriptionField
|
||||||
extends PhabricatorProjectStandardCustomField {
|
extends PhabricatorProjectStandardCustomField {
|
||||||
|
|
||||||
public function renderPropertyViewValue(array $handles) {
|
|
||||||
$value = $this->getProxy()->getFieldValue();
|
|
||||||
|
|
||||||
if (!strlen($value)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
$viewer = $this->getViewer();
|
|
||||||
return PhabricatorMarkupEngine::renderOneObject(
|
|
||||||
id(new PhabricatorMarkupOneOff())
|
|
||||||
->setContent($value)
|
|
||||||
->setPreserveLineBreaks(true),
|
|
||||||
'default',
|
|
||||||
$viewer);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createFields($object) {
|
public function createFields($object) {
|
||||||
return PhabricatorStandardCustomField::buildStandardFields(
|
return PhabricatorStandardCustomField::buildStandardFields(
|
||||||
$this,
|
$this,
|
||||||
|
|||||||
Reference in New Issue
Block a user