當我編輯Web模板代碼時,即在混合使用php/html代碼或混合的ruby/html代碼時,我遇到了Emacs中的問題。 Emacs在不應該的時候會換行。當我在線上的某處輸入空格時會出現換行符,非常煩人......emacs中的不需要的格式化/換行符
如何禁用此行爲?
下面是我正在使用的代碼類型。如果我在其中一個逗號之後輸入空格,那麼Emacs將進行換行,有時會出現多個換行符。
<% if @item.id %>
<b>Congratulations!The item was saved!
<%= button_to 'Preview the ad',@item,:method=>:get,:class => "btn add" %>
<% end %>
謝謝!