gpt4 book ai didi

haml - 为什么在haml中使用 'succeed do'?

转载 作者:行者123 更新时间:2023-12-03 23:34:03 28 4
gpt4 key购买 nike

我使用 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>
.

空格在内联元素中很重要 - 请引用我在 this question 中的(迟到的)答案

关于haml - 为什么在haml中使用 'succeed do'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16291234/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com