Commit 865ea16
1 parent b8eae0e commit 865ea16
File tree
5 files changed
+97
-21
lines changed- base
- src
- test
5 files changed
+97
-21
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1100 | 1100 |
| |
1101 | 1101 |
| |
1102 | 1102 |
| |
| 1103 | + | |
| 1104 | + | |
1103 | 1105 |
| |
1104 | 1106 |
| |
1105 | 1107 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
652 | 652 |
| |
653 | 653 |
| |
654 | 654 |
| |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
655 | 697 |
| |
656 | 698 |
| |
657 | 699 |
| |
| 700 | + | |
| 701 | + | |
658 | 702 |
| |
659 | 703 |
| |
660 | 704 |
| |
|
+30-20
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
800 | 800 |
| |
801 | 801 |
| |
802 | 802 |
| |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
808 |
| - | |
809 |
| - | |
810 |
| - | |
811 |
| - | |
812 |
| - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
813 | 816 |
| |
814 | 817 |
| |
815 | 818 |
| |
| |||
1312 | 1315 |
| |
1313 | 1316 |
| |
1314 | 1317 |
| |
1315 |
| - | |
| 1318 | + | |
1316 | 1319 |
| |
1317 | 1320 |
| |
1318 | 1321 |
| |
| |||
1322 | 1325 |
| |
1323 | 1326 |
| |
1324 | 1327 |
| |
1325 |
| - | |
| 1328 | + | |
1326 | 1329 |
| |
1327 | 1330 |
| |
1328 | 1331 |
| |
| |||
1340 | 1343 |
| |
1341 | 1344 |
| |
1342 | 1345 |
| |
1343 |
| - | |
| 1346 | + | |
1344 | 1347 |
| |
1345 | 1348 |
| |
1346 | 1349 |
| |
| |||
1366 | 1369 |
| |
1367 | 1370 |
| |
1368 | 1371 |
| |
1369 |
| - | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1370 | 1376 |
| |
1371 | 1377 |
| |
1372 | 1378 |
| |
| |||
1542 | 1548 |
| |
1543 | 1549 |
| |
1544 | 1550 |
| |
1545 |
| - | |
1546 |
| - | |
1547 |
| - | |
1548 |
| - | |
1549 |
| - | |
1550 |
| - | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
1551 | 1561 |
| |
1552 | 1562 |
| |
1553 | 1563 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2121 | 2121 |
| |
2122 | 2122 |
| |
2123 | 2123 |
| |
2124 |
| - | |
| 2124 | + | |
| 2125 | + | |
2125 | 2126 |
| |
2126 | 2127 |
| |
2127 | 2128 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + |
6 commit comments
StefanKarpinski commentedon Feb 16, 2013
Cool. This isn't quite the behavior I was thinking of, but it's close. The trailing newline should be kept, so that
Note the newline at the end. Also, with this it is impossible to express intentionally indented text. For example, I would want this:
This can be done by only stripping the whitespace leading up to the closing triple quote. You can merge now though and I can tweak it later. Or we can debate a bit if people strongly disagree.
JeffBezanson commentedon Feb 16, 2013
What should it do if the string doesn't end in a newline, e.g.
StefanKarpinski commentedon Feb 17, 2013
Probably use the ident of that line.
nolta commentedon Feb 17, 2013
Ok, i'll switch to using the last line to strip whitespace, instead of the first.
But i think we should still discard the trailing newline.
StefanKarpinski commentedon Feb 17, 2013
Justification? I've found that you almost always want the trailing newline when generating text.
nolta commentedon Feb 17, 2013