Commit 714007e
Embedded formatter indentation fixes
* Change the strategy for how we indent squiggly heredocs: dedent the
entire heredoc one level (to be on the same level as the statement
that started it) and then indent the formatted doc, using a hard
line break to separate the ending heredoc token
* Don't consider empty lines as part of the common leading whitespace
calculation
Co-authored-by: Miriam Lauter <mlauter@actbluetech.com>1 parent a3b5d9d commit 714007eCopy full SHA for 714007e
File tree
Expand file treeCollapse file tree
2 files changed
+74
-4
lines changedOpen diff view settings
Filter options
- src/ruby
- test/js/ruby
Expand file treeCollapse file tree
2 files changed
+74
-4
lines changedOpen diff view settings
Collapse file
+12-4Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
7 | 14 | |
8 | 15 | |
9 | 16 | |
| ||
47 | 54 | |
48 | 55 | |
49 | 56 | |
| 57 | + |
50 | 58 | |
51 | 59 | |
52 | 60 | |
| ||
109 | 117 | |
110 | 118 | |
111 | 119 | |
112 | | - |
| 120 | + |
113 | 121 | |
114 | | - |
| 122 | + |
115 | 123 | |
116 | 124 | |
117 | 125 | |
|
Collapse file
+62Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
81 | 143 | |
0 commit comments