报错问题

作者:烨竹

好记性不如烂笔头;所以在这里记录下我遇到的报错问题

node.js

报错:Inconsistent indentation. Expecting either 0 or 3 spaces/tabs.

错误代码

- var fjo= "pencil" + oneid
- var fjk= "remove" + oneid
 
button.btn.btn-default.btn-xs(type='button', id=fjo, data-toggle='modal', data-target='#myModal')
   span.glyphicon.glyphicon-pencil(aria-hidden='true')
button.btn.btn-default.btn-xs(type='button', id=fjk)
   span.glyphicon.glyphicon-remove(aria-hidden='true')
   span(class=fjo)=onemsg
p
 
script(src='javascripts/buttonlist.js')

错误原因:一些编辑器(DW)使用选项卡自动格式化新行
参考网站:https://github.com/pugjs/pug/issues/280
修改前:

修改后:

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容