Commit 3853362
fix(cpu-template-helper): Handle a new line correctly to display error
`displaydoc::Display` doesn't recognize `\n` as a new line in doc
string:
```
Difference detected between source and target: \n{
"name": "kernel_version",
"prev": "5.10.215-203.850.amzn2.x86_64",
"curr": "6.1.84-99.169.amzn2023.x86_64"
}
```
Also, it doesn't support multi-line string unless we use `/** */` style
doc, however the doc style is denied by our format check.
Signed-off-by: Takahiro Itazuri <[email protected]>1 parent f8d092c commit 3853362
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | | - | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments