mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Preserve line breaks in standard remarkup fields
Summary: Initially the change is aimed to solve issue with line breaks being lost in projects descriptions. But it is done in a general place so line breaks behavior is more consistent all over the place. Test Plan: - Write a multiline description of the project, using single \n for line breakers. - View project details in project/view/X? Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10014
This commit is contained in:
parent
1be1f80025
commit
1888f61411
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ final class PhabricatorStandardCustomFieldRemarkup
|
|||
|
||||
$viewer = $this->getViewer();
|
||||
return PhabricatorMarkupEngine::renderOneObject(
|
||||
id(new PhabricatorMarkupOneOff())->setContent($value),
|
||||
id(new PhabricatorMarkupOneOff())
|
||||
->setContent($value)
|
||||
->setPReserveLinebreaks(true),
|
||||
'default',
|
||||
$viewer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue