From 6800fc61030fd7e7b0ab4e0ccdaa4f9df9e544cc Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 18 Dec 2015 15:15:59 +0500 Subject: [PATCH] Preserve line breaks for the instruction fields --- src/view/form/AphrontFormView.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/form/AphrontFormView.php b/src/view/form/AphrontFormView.php index f9f281ff20..7bccf70273 100644 --- a/src/view/form/AphrontFormView.php +++ b/src/view/form/AphrontFormView.php @@ -86,7 +86,9 @@ final class AphrontFormView extends AphrontView { public function appendRemarkupInstructions($remarkup) { return $this->appendInstructions( PhabricatorMarkupEngine::renderOneObject( - id(new PhabricatorMarkupOneOff())->setContent($remarkup), + id(new PhabricatorMarkupOneOff()) + ->setContent($remarkup) + ->setPReserveLinebreaks(true), 'default', $this->getUser())); }