I have a problem in Sinatra with ERB templating engine. Partials are rendered with wrong indention.
There is no custom helpers, or sinatra-partial gem, just vanilla Sinatra. Also have 'sinatra-contrib' installed, if it makes any difference.
Editor is Sublime Text, and all files use spaces for indention. Sublime Text has ensure_newline_at_eof_on_save
setting enabled (I tried to disable it, but it gives no difference).
Views structure
views
|- layouts
|- application.erb
|- main
|- index.erb
|- partials
|- header.erb
layouts/application.erb
<html>
<body>
<%= yield %>
</body>
</html>
main/index.erb
<article>
<%= erb :'partials/header', layout: false %>
</article>
partials/header.erb
<header>
<h1>Newsletter</h1>
</header>
Renders HTML
<html>
<body>
<article>
<header>
<h1>Newsletter</h1>
</header>
</article>
</body>
</html>