我在我的haml文件中有以下几行代码。如何在haml中添加空格
(Requested:
%strong<>
= comment.commentable.requested_check_in.present? ? comment.commentable.requested_check_in.strftime("%m/%d/%Y") : ""
="-"
= comment.commentable.requested_check_out.present? ? comment.commentable.requested_check_out.strftime("%m/%d/%Y") : ""
, Actual:
%strong<>
= comment.commentable.actual_check_in.present? ? comment.commentable.actual_check_in.strftime("%m/%d/%Y") : ""
="-"
= comment.commentable.actual_check_out.present? ? comment.commentable.actual_check_out.strftime("%m/%d/%Y") : ""
).
我想是,要
(Requested: " "
后有一个白色的空间,但该行没有工作。
生成的HTML如何以及您的预期结果是什么? – Stefan