| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -575,13 +575,9 @@ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { | |||
| 575 | 575 | } | |
| 576 | 576 | if (str.indexOf('\n') > -1) { | |
| 577 | 577 | if (array) { | |
| 578 | - str = str.split('\n').map(function(line) { | ||
| 579 | - return ' ' + line; | ||
| 580 | - }).join('\n').substr(2); | ||
| 578 | + str = str.replace(/\n/g, '\n '); | ||
| 581 | 579 | } else { | |
| 582 | - str = '\n' + str.split('\n').map(function(line) { | ||
| 583 | - return ' ' + line; | ||
| 584 | - }).join('\n'); | ||
| 580 | + str = str.replace(/(^|\n)/g, '\n '); | ||
| 585 | 581 | } | |
| 586 | 582 | } | |
| 587 | 583 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments