<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (true)
  a = b
  return"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span>
  <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span>
  <span class="pl-k">return</span></pre></div>
<p dir="auto">"Return" should have the same indent as "if"</p>
<p dir="auto">This issue can include <a href="https://github.com/atom/language-javascript/issues/49" data-hovercard-type="issue" data-hovercard-url="/atom/language-javascript/issues/49/hovercard">this earlier one</a>.</p>
<p dir="auto">It seems that a lack of braces break the auto indentation. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (true)
  i = 1;
else
  i = 2;"><pre class="notranslate"><code class="notranslate">if (true)
  i = 1;
else
  i = 2;
</code></pre></div>
<p dir="auto">Turns into:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (true)
  i = 1;
  else
    i = 2;"><pre class="notranslate"><code class="notranslate">if (true)
  i = 1;
  else
    i = 2;
</code></pre></div>