haml template issue:
haml layout page:
everytime update data, the space more and more, look the logs show:
[["text", "```ruby\r\ndef hello\r\n puts \"hello\"\r\nend\r\n```"]
![](https://lh3.googleusercontent.com/-sGAe0e_Z3y8/WHRiZR2fGDI/AAAAAAAAAAw/UBhQy7oZ3ec0G8cV4LyTuV9BN95b3A-ewCLcB/s320/Screen%2BShot%2B2017-01-10%2Bat%2B12.07.38.png)
![](https://lh3.googleusercontent.com/-McAPsnd60_M/WHRh-7nCFzI/AAAAAAAAAAs/smTo8cBGSIYcwPcX2pachXy6eWhnNVhqQCLcB/s320/Screen%2BShot%2B2017-01-10%2Bat%2B08.56.23.png)
but using erb template:
![](https://lh3.googleusercontent.com/-9OBKF-6z3jg/WHRh64HrbRI/AAAAAAAAAAo/pffLUTrfeK8moTh33qpUMP4Uvs_jUK-ygCLcB/s320/Screen%2BShot%2B2017-01-10%2Bat%2B08.49.32.png)
the log show: [["body", "world\r\n\r\nworld\r\n\r\nhello\r\nworld\r\nin\r\nhere\r\n\r\n```ruby\r\ndef hello\r\n puts \"hello world!\"\r\nend\r\n```"], ["updated_at", 2017-01-10 04:07:22 UTC], ["id", 2]]
no problem