From 2fe26b971c09655a420fcc50778055376fa405ad Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Fri, 18 Aug 2017 17:43:41 -0400 Subject: [PATCH] doc: do not compact stability text to one line Previously, stability descriptions were strung together as one long horizontal row at https://nodejs.org/api/documentation.html. Now, the text now will auto-expand vertically, so you can see all of the text at once. Note that the CSS options for how to handle this are somewhat constrained since the paragraphs are being rendered through `pre` elements, and the third party syntax highlighting library does apply its own styling. Before: https://cl.ly/2w2O0z1T2o0Y After: https://cl.ly/3z1i1t2D2r41 This does not affect the stability boxes for features, as thouse were not previously affected by this bug, and are only a few words long. --- doc/api_assets/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 3761be4031e178..7d4c295434fc05 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -95,6 +95,7 @@ em code { font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; padding: 1em; line-height: 1.5; + white-space: pre-wrap; } .api_stability * {