Commit b5b133c
committed
refactor(strings): enhance newline normalization and leading space handling
- Improved the `normalize_value_newlines` function to better manage leading spaces in multiline strings.
- Introduced logic to conditionally unindent lines based on the common count of leading spaces, preserving intentional small indents.
- Updated tests to reflect changes in newline handling and leading space preservation for multiline string values.1 parent 3a748ba commit b5b133c
1 file changed
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
416 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
417 | 414 | | |
418 | 415 | | |
419 | 416 | | |
| |||
630 | 627 | | |
631 | 628 | | |
632 | 629 | | |
633 | | - | |
| 630 | + | |
634 | 631 | | |
635 | 632 | | |
636 | 633 | | |
| |||
640 | 637 | | |
641 | 638 | | |
642 | 639 | | |
643 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
644 | 655 | | |
| 656 | + | |
645 | 657 | | |
646 | 658 | | |
647 | 659 | | |
| |||
0 commit comments