Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork941
Commitf2b8041
committed
Don't remove quotes if
This is for single line quoting in the ConfigParser.This leaves the changes in#2035 (as adjusted in#2036) intact forthe cases where it addressed#1923: when the `...` in `"..."`(appearing in the value position on a single `{name} = {value}"`line) has no occurrences of `\` or `"`, quote removal is enough.But when `\` or `"` does appear, this suppresses quote removal.This is with the idea that, while it would be better to interpretsuch lines as Git does, we do not yet do that, so it is preferableto return the same results we have in the past (which some programsmay already be handling themselves).This should make the test introduced in the preceding commit pass.But it will be even better to support more syntax, at leastwell-formed escapes. As noted in the test, both the test and thecode under test can be adjusted for that.(See comments in#2035 for context.)\
or"
are present inside1 parent7bcea08 commitf2b8041
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
508 |
| - | |
| 508 | + | |
| 509 | + | |
509 | 510 |
| |
| 511 | + | |
510 | 512 |
| |
511 | 513 |
| |
512 |
| - | |
513 |
| - | |
| 514 | + | |
| 515 | + | |
514 | 516 |
| |
| 517 | + | |
515 | 518 |
| |
516 | 519 |
| |
517 | 520 |
| |
|
0 commit comments
Comments
(0)