From 83c79bd586c4e634566ec30a9b8d6645a1de639e Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Fri, 24 May 2013 22:23:17 +0200 Subject: [PATCH] Wrap pre-formatted nodes at word boundaries, not window width Bug: 38043 Change-Id: I9b5e3b3e62b52c86743ee345b1cc31beec0a061e --- modules/ve/ce/styles/ve.ce.Node.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ve/ce/styles/ve.ce.Node.css b/modules/ve/ce/styles/ve.ce.Node.css index 9ad28415ce..66c7babbfd 100644 --- a/modules/ve/ce/styles/ve.ce.Node.css +++ b/modules/ve/ce/styles/ve.ce.Node.css @@ -152,6 +152,7 @@ } /* ve.ce.MWTemplateNode */ + .ve-ce-MWtemplateBlockNode { display: block; } @@ -166,6 +167,12 @@ display: block; } +/* ve.ce.MWPreformattedNode */ + +pre.ve-ce-branchNode { + white-space: pre-wrap; +} + .ve-ce-branchNode h1:empty:before, .ve-ce-branchNode h2:empty:before, .ve-ce-branchNode h3:empty:before,