Adding white-space: pre-wrap to pre has no effect on Chrome

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
skwpt
Propeller Head
Posts: 88
Joined: Thu Oct 01, 2015 2:39 pm

Adding white-space: pre-wrap to pre has no effect on Chrome

Post by skwpt »

I'm trying to get preformatted (code) output to wrap. Often I'll just force a soft return, but in this case, I want readers to be able to copy and paste a line of code where breaks would mess things up for them.

Here's my pre style

Code: Select all

pre
{
	font-size: 12pt;
	background-color: #edf0f1;
	white-space: pre-wrap;
}
My very long line of code wraps appropriately in PDF output and also in HTML using Firefox 49.0.1.

In Chrome 54.0.2840.87, it is still one long line of code that looks bad in HTML output. If I resize my browser down, the line is cut off from view. It's as if Chrome is using nowrap.

Has anyone got this to work?
__________________________________________________________________
Running Flare 2017 r2 on a MacBook Pro.
Parallels Desktop 12 hypervisor with Windows 10 VM
Post Reply