# BUG: ruby-mode.el : indentation after '||' disappears after

**URL:** <https://www.ruby-forum.com/t/bug-ruby-mode-el-indentation-after-disappears-after/109867>\
**Category:** Ruby\
**Created:** [July 19, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/bug-ruby-mode-el-indentation-after-disappears-after/109867 "2007-07-19T19:23:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [July 19, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/bug-ruby-mode-el-indentation-after-disappears-after/109867/1 "2007-07-19T19:23:28Z")

</div>

This is a minor bug but worth noting. Here’s some code indented by  
ruby-mode.el (1.8.6-p36).

[snip]

foo do |x|  
end

a ||  
b

[snip]

The variable “b” should be indented, but it’s not. The indentation  
appears properly if you remove the method call to foo , or remove the  
block from that method call, or change the ‘||’ operator to ‘&&’. It  
looks like an interaction between the ‘||’ and the preceding block but  
I don’t have the elisp-fu to be sure.

Hope this helps,

Jeremy H.
