html - How to preserve whitespace but ignore line breaks in CSS? -


the white-space property in css-3 has pre-wrap value, preserve whitespace , line breaks, , wrap when necessary, , pre-line value, collapses whitespace, preserves line breaks, , wraps when necessary.

what not have, though, value preserves whitespace , collapses line breaks, while still wrapping otherwise.

is there combination of other css properties can use effect?

for example:

this  example code should     render on  1  line  spaces     intact. 

should like:

this  example code should     render on  1  line  spaces     intact. 


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -