OLD | NEW |
(Empty) | |
| 1 40 columns | |
| 2 >>> long single-line |
| 3 "this string is longer than forty characters"; |
| 4 <<< |
| 5 "this string is longer than forty characters"; |
| 6 >>> short one line multi-line |
| 7 """not too long"""; |
| 8 <<< |
| 9 """not too long"""; |
| 10 >>> multi-line with short lines |
| 11 """ |
| 12 not too long |
| 13 or this one |
| 14 """; |
| 15 <<< |
| 16 """ |
| 17 not too long |
| 18 or this one |
| 19 """; |
| 20 >>> multi-line with long lines |
| 21 """ |
| 22 this string is longer than forty characters |
| 23 this one is also is longer than forty characters |
| 24 """; |
| 25 <<< |
| 26 """ |
| 27 this string is longer than forty characters |
| 28 this one is also is longer than forty characters |
| 29 """; |
| 30 >>> only indent the first line of multiline strings |
| 31 { |
| 32 """ |
| 33 multiline |
| 34 """; |
| 35 } |
| 36 <<< |
| 37 { |
| 38 """ |
| 39 multiline |
| 40 """; |
| 41 } |
| 42 >>> do not wrap the first line if not needed |
| 43 someMethod("""first line fits in here |
| 44 more stuff down here too that is long |
| 45 """); |
| 46 <<< |
| 47 someMethod("""first line fits in here |
| 48 more stuff down here too that is long |
| 49 """); |
| 50 >>> wrap first line if needed |
| 51 someMethod("""first line does not fits here |
| 52 """); |
| 53 <<< |
| 54 someMethod( |
| 55 """first line does not fits here |
| 56 """); |
OLD | NEW |