HTML:
Code: Select all
<p class="prelines">
This text preserves newline characters and nothing else like
tabs or more then one space characters.
</p>
Code: Select all
.preline {
some-rule-that-preserves-newline-characters: value;
}
What I'm looking for is the some-rule-that-preserves-newline-characters rule. I know I could use the white-space property but I believe this preserves tabs and multiple space characters as well(which is not what I want).This text preserves newline characters and nothing else like
tabs or more then one space characters.
Thanks for reading. I hope there's such a CSS property.