Skip to content

Commit fe2e520

Browse files
committed
An additional note about hanging indentation
1 parent 91c7606 commit fe2e520

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/ft-ruby-indent.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ following setting.
119119
:let g:ruby_indent_hanging_elements = 0
120120
<
121121
By default, this setting is "1" (true) meaning that hanging indentation is
122-
enabled.
122+
enabled in some cases.
123123

124124
Here is an example method call when the setting is true (non-zero):
125125
>
@@ -135,5 +135,14 @@ And the same method call when the setting is false (zero):
135135
on_sale: true,
136136
)
137137
<
138+
Note that, even if the setting is turned on, you can still get non-hanging
139+
indentation by putting each argument on a separate line:
140+
>
141+
render(
142+
'product/show',
143+
product: product,
144+
on_sale: true,
145+
)
146+
<
138147

139148
vim:tw=78:sw=4:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)