mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f8de57fbba
Previously, the indentation of code snippets in the "Cheat sheet" guide was done using `<br>` elements (for line breaks) and ` ` HTML entities (for space). This was laborious and put the onus on the author to remember to use these symbols (instead of regular whitespace characters). (Discussed in https://github.com/angular/angular/pull/41051#discussion_r585651621.) This commit changes the way `<code>` elements are styles inside the "Cheat sheet" guide to allow using regular whitespace characters in code snippets. It also changes all `<br>`/` ` occurrences to `\n`/` ` respectively to make code snippets more readable in the source code. PR Close #41051