From 8a7ded61293a7c4b6c98c33b8f0e8bcb178ab5fd Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 7 Jun 2016 06:52:52 -0700 Subject: [PATCH] Fix one more remarkup line wrapping issue Summary: Ran into this while fixing T11098#179088. The "Transaction Type" details in the conduit autogenerated documentation for `*.edit` endpoints still wraps incorrectly. Test Plan: Purged remarkup cache, reloaded page, got full-width text. Reviewers: avivey, chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D16065 --- .../editengine/PhabricatorEditEngineAPIMethod.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php b/src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php index 7bd09df18a..de693a4049 100644 --- a/src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php +++ b/src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php @@ -158,6 +158,11 @@ abstract class PhabricatorEditEngineAPIMethod $view = new PHUIRemarkupView($viewer, $remarkup); + $view->setRemarkupOptions( + array( + PHUIRemarkupView::OPTION_PRESERVE_LINEBREAKS => false, + )); + return id(new PHUIBoxView()) ->appendChild($view) ->addPadding(PHUI::PADDING_LARGE);