-
-
Notifications
You must be signed in to change notification settings - Fork 954
Commit f2b8041
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 for
the 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 interpret
such lines as Git does, we do not yet do that, so it is preferable
to return the same results we have in the past (which some programs
may 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 least
well-formed escapes. As noted in the test, both the test and the
code under test can be adjusted for that.
(See comments in #2035 for context.)\
or "
are present inside1 parent 7bcea08 commit f2b8041
1 file changed
+6
-3
lines changedOriginal 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