我使用了 html2haml.heroku.com,它将一些普通的字符串变成了以下内容:
A normal sentence is here
= succeed '.' do
%strong and it is cut off randomly by this succeed
succeed
呼叫似乎不必要的地方。这只是从 html 到 haml 转换的工件吗?
我使用了 html2haml.heroku.com,它将一些普通的字符串变成了以下内容:
A normal sentence is here
= succeed '.' do
%strong and it is cut off randomly by this succeed
succeed
呼叫似乎不必要的地方。这只是从 html 到 haml 转换的工件吗?
如果你试试
A normal sentence is here
= succeed '.' do
%strong and it is cut off randomly by this succeed
并生成 HTML,输出将如下所示:
A normal sentence is here
<strong>and it is cut off randomly by this succeed</strong>.
但是,如果您尝试类似
A normal sentence is here
%strong and it is cut off randomly by this succeed
.
你会得到这样的输出:
A normal sentence is here
<strong>and it is cut off randomly by this succeed</strong>
.
空格在行内元素中很重要-请参阅我在这个问题中的(迟到的)答案