我想知道为什么在解析jade模板时,源代码中没有任何换行符。它看起来像这样:
!!! 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/css.css')
link(rel='stylesheet', href='/stylesheets/blitzer/jquery-ui-1.8.10.custom.css')
link(rel='stylesheet', href='/stylesheets/table_jui.css')
script(type="text/javascript", src="/javascripts/jquery.min.js")
script(type="text/javascript", src="/javascripts/jquery-ui.min.js")
script(type="text/javascript", src="/javascripts/jquery.jwNotify.js")
script(type="text/javascript", src="/javascripts/jquery.dataTables.min.js")
script(type="text/javascript", src="/javascripts/js.js")
body!= body
现在我的源代码看起来像这样:
<!DOCTYPE html><html><head><title>Express v2</title><link rel="stylesheet" href="/stylesheets/css.css"><link rel="stylesheet" href="/stylesheets/blitzer/jquery-ui-1.8.10.custom.css"><link rel="stylesheet" href="/stylesheets/table_jui.css"><script type="text/javascript" src="/javascripts/jquery.min.js"></script><script type="text/javascript" src="/javascripts/jquery-ui.min.js"></script><script type="text/javascript" src="/javascripts/jquery.jwNotify.js"></script><script type="text/javascript" src="/javascripts/jquery.dataTables.min.js"></script><script type="text/javascript" src="/javascripts/js.js"></script></head><body></body></html>
在调试源代码时,是否可以看到断行?有人知道如何处理吗?谢谢!