1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-04 03:41:01 +01:00
phorge-phorge/src/view
epriestley ec71dcd8e9 Add an extra newline after <textarea> to preserve textarea content beginning with newlines
Summary:
Fixes T8707. See that task for discussion. Browser behavior is apparently to ignore a newline immediately following a `<textarea>`, and ostensibly has been since the early 1800s.

This is the same fix Rails used when it encountered this issue in 2011, which gives me some confidence it is correct.

Test Plan:
  - Edited a task with leading newlines in the description.
  - Newlines were preserved correctly across multiple edits.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T8707

Differential Revision: https://secure.phabricator.com/D14688
2015-12-05 15:46:05 -08:00
..
__tests__ Various linter fixes 2015-08-11 22:36:55 +10:00
control Implement a basic version of ApplicationEditor in Paste 2015-11-03 10:11:54 -08:00
form Add an extra newline after <textarea> to preserve textarea content beginning with newlines 2015-12-05 15:46:05 -08:00
layout Make mobile navigation work properly by default in more cases 2015-11-03 10:11:24 -08:00
page Add mask-icon for Safari pinned tab 2015-11-22 13:04:06 -08:00
phui Style drafts in new PhameBlogView 2015-11-30 12:37:50 -08:00
widget Linter fixes 2015-12-03 07:44:23 +11:00
AphrontDialogView.php Allow ObjectLists to be set to Dialogs 2015-10-27 19:32:35 +00:00
AphrontJavelinView.php Various linter fixes 2015-05-20 07:27:41 +10:00
AphrontNullView.php Provide hasChildren() to replace isEmptyContent() 2013-08-12 07:51:01 -07:00
AphrontTagView.php Improve handle loading semantics for tokenizers 2015-04-02 13:42:01 -07:00
AphrontView.php Desktop Notification support 2015-06-22 13:11:37 -07:00
viewutils.php Force date/time preferences to valid values 2015-06-18 15:11:01 -07:00