HomePhabricator

When long monospaced character sequences appear in Remarkup tables, break…

Description

When long monospaced character sequences appear in Remarkup tables, break rather than scrolling

Summary:
Ref PHI1798. If you put an SSH public key in a table cell with monospaced formatting and then print the table, the cell scrolls and not all of the content appears in your physical printed document.

Generally, the current scrolling behavior for monospaced text seems never-desirable: I can't imagine any cases where we want the table cell to scroll. (There's more of an argument for complex cases where a table cell has, say, an embedded paste.)

Add line-break: anywhere to break monospaced text inside these cells.

Test Plan: In Safari, Firefox, and Chrome, viewed a |`MMMMM....`| table. Saw scrolling before and wrapping/breaking after.

Differential Revision: https://secure.phabricator.com/D21370