0
code {
   padding: 0;
   color: inherit;
   white-space: pre;              // first time
   white-space: pre-wrap;        // why do this twice?
   background-color: transparent;
   border: 0;
}

it's in /vendor/assets/stylesheets/bootstrap/_code.scss

why not just define white-space: pre-wrap, from my point of view, it works well.
Does it work for some special purpose?

madth3
  • 7,275
  • 12
  • 50
  • 74
Robin Hwang
  • 189
  • 1
  • 9

1 Answers1

2

pre-wrap is not availabe in all browsers and pre is its backup.

Merec
  • 2,751
  • 1
  • 14
  • 21
  • get it , I check the documentation more carefully and do find the answer on [CSS|MDN](https://developer.mozilla.org/en-US/docs/CSS/white-space), Thank U – Robin Hwang Mar 04 '13 at 12:58