Commit dc4a382
committed
Fix indention problem with lists in lists
In `dyff`, an issue was reported that showed the wrong usage of the
indention prefix in lists in lists:
```
cluster-1
- one list entry removed: + two list entries added:
- │ - x1 - │ - x1
│ - x5 │ - x5
│ - x10
- x999
```
The correct style would be like this:
```
cluster-1
- one list entry removed: + two list entries added:
- - x1 - - x1
│ - x5 │ - x5
│ - x10
- x999
```
Add two additional checks in the sequence node code to correctly use the
indention prefix only in list entries other than the first one. An
exception of that rule is in case `skipIndentOnFirstLine` is `false`.1 parent 3c43889 commit dc4a382
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
197 | 206 | | |
198 | 207 | | |
199 | 208 | | |
| |||
0 commit comments