rails slim语法错误

Mak*_*aki 6 ruby-on-rails slim-lang

我试着做一个简单的桌子

table class="table table-striped"
  thead
    tr
      th username
Run Code Online (Sandbox Code Playgroud)

它工作正常,但当我尝试添加另一个th或tbody我得到一个错误格式缩进,例如这段代码对我不起作用

table class="table table-striped"
  thead
    tr
      th username
      th provider
Run Code Online (Sandbox Code Playgroud)

要么

table class="table table-striped"
  thead
    tr
      th username
  tbody
    tr
      td test
Run Code Online (Sandbox Code Playgroud)

有谁能够帮我?

Buc*_*yle 10

在没有看到原始源的情况下,我只能猜测您的文本编辑器在后续行中插入了制表符而不是空格,这些行位于相同的缩进级别.确保一切都是空格?