Commit 38bc5fb
util: remove erroneous whitespace
When inspecting nested objects some times a whitespace was added at
the end of a line. This fixes this erroneous space.
Besides that the `breakLength` was not followed if a single property
was longer than the breakLength. It will now break a single property
into the key and value in such cases.
PR-URL: #20802
Refs: #20253
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 5ce85a7 commit 38bc5fbCopy full SHA for 38bc5fb
File tree
Expand file treeCollapse file tree
4 files changed
+56
-52
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
4 files changed
+56
-52
lines changedOpen diff view settings
Collapse file
+42-40Lines changed: 42 additions & 40 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
416 | 416 | |
417 | 417 | |
418 | 418 | |
419 | | - |
| 419 | + |
420 | 420 | |
421 | 421 | |
422 | 422 | |
| ||
592 | 592 | |
593 | 593 | |
594 | 594 | |
595 | | - |
| 595 | + |
596 | 596 | |
597 | 597 | |
598 | 598 | |
| ||
693 | 693 | |
694 | 694 | |
695 | 695 | |
696 | | - |
| 696 | + |
697 | 697 | |
698 | 698 | |
699 | 699 | |
| ||
768 | 768 | |
769 | 769 | |
770 | 770 | |
771 | | - |
| 771 | + |
| 772 | + |
| 773 | + |
| 774 | + |
| 775 | + |
| 776 | + |
| 777 | + |
| 778 | + |
| 779 | + |
| 780 | + |
| 781 | + |
| 782 | + |
| 783 | + |
| 784 | + |
| 785 | + |
| 786 | + |
| 787 | + |
772 | 788 | |
773 | 789 | |
774 | 790 | |
| ||
996 | 1012 | |
997 | 1013 | |
998 | 1014 | |
999 | | - |
1000 | | - |
1001 | | - |
1002 | | - |
1003 | | - |
1004 | | - |
1005 | | - |
1006 | | - |
1007 | | - |
1008 | | - |
1009 | | - |
1010 | | - |
1011 | | - |
1012 | | - |
1013 | | - |
1014 | | - |
1015 | | - |
1016 | | - |
1017 | | - |
1018 | | - |
1019 | | - |
1020 | | - |
1021 | | - |
1022 | | - |
1023 | | - |
1024 | | - |
1025 | | - |
1026 | | - |
1027 | 1015 | |
1028 | | - |
| 1016 | + |
| 1017 | + |
1029 | 1018 | |
1030 | 1019 | |
1031 | 1020 | |
1032 | 1021 | |
1033 | 1022 | |
1034 | | - |
| 1023 | + |
| 1024 | + |
| 1025 | + |
| 1026 | + |
| 1027 | + |
| 1028 | + |
| 1029 | + |
1035 | 1030 | |
1036 | 1031 | |
1037 | 1032 | |
| ||
1047 | 1042 | |
1048 | 1043 | |
1049 | 1044 | |
1050 | | - |
1051 | | - |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
| 1049 | + |
| 1050 | + |
| 1051 | + |
| 1052 | + |
| 1053 | + |
| 1054 | + |
1052 | 1055 | |
1053 | 1056 | |
1054 | | - |
| 1057 | + |
1055 | 1058 | |
1056 | 1059 | |
1057 | 1060 | |
| ||
1080 | 1083 | |
1081 | 1084 | |
1082 | 1085 | |
1083 | | - |
1084 | 1086 | |
1085 | | - |
| 1087 | + |
1086 | 1088 | |
1087 | | - |
| 1089 | + |
1088 | 1090 | |
1089 | 1091 | |
1090 | 1092 | |
|
Collapse file
test/parallel/test-util-format.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-format.js+8-8Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
126 | 126 | |
127 | 127 | |
128 | 128 | |
129 | | - |
| 129 | + |
130 | 130 | |
131 | 131 | |
132 | 132 | |
| ||
135 | 135 | |
136 | 136 | |
137 | 137 | |
138 | | - |
139 | | - |
| 138 | + |
| 139 | + |
140 | 140 | |
141 | 141 | |
142 | 142 | |
| ||
145 | 145 | |
146 | 146 | |
147 | 147 | |
148 | | - |
| 148 | + |
149 | 149 | |
150 | | - |
| 150 | + |
151 | 151 | |
152 | 152 | |
153 | 153 | |
| ||
156 | 156 | |
157 | 157 | |
158 | 158 | |
159 | | - |
| 159 | + |
160 | 160 | |
161 | 161 | |
162 | 162 | |
163 | 163 | |
164 | 164 | |
165 | 165 | |
166 | | - |
| 166 | + |
167 | 167 | |
168 | 168 | |
169 | 169 | |
| ||
172 | 172 | |
173 | 173 | |
174 | 174 | |
175 | | - |
| 175 | + |
176 | 176 | |
177 | 177 | |
178 | 178 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1237 | 1237 | |
1238 | 1238 | |
1239 | 1239 | |
1240 | | - |
| 1240 | + |
1241 | 1241 | |
1242 | 1242 | |
1243 | 1243 | |
|
Collapse file
test/parallel/test-whatwg-url-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-url-inspect.js+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
| ||
32 | 33 | |
33 | 34 | |
34 | 35 | |
35 | | - |
| 36 | + |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | 40 | |
| ||
46 | 48 | |
47 | 49 | |
48 | 50 | |
49 | | - |
| 51 | + |
50 | 52 | |
51 | 53 | |
52 | 54 | |
|
0 commit comments