Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add <%- -%> to the ERB blocks.

The Textmate version does this, and this is a super useful shortcut to make sure
that any whitespace is removed before and after the ERB block.
  • Loading branch information...
commit 46de037885ef0e16b3ec6fbe9bcce5162e2966a9 1 parent 508d652
@paulca paulca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  erb_block.py
View
2  erb_block.py
@@ -1,7 +1,7 @@
import sublime, sublime_plugin
import re
-ERB_BLOCKS = ['<%= %>', '<% %>', '<%= -%>', '<%# %>', '<% -%>']
+ERB_BLOCKS = ['<%= %>', '<% %>', '<%- -%>', '<%= -%>', '<%# %>', '<% -%>']
ERB_REGEX = '<%(=?|-?|#?)\s{2}(-?)%>'
class ErbCommand(sublime_plugin.TextCommand):
Please sign in to comment.
Something went wrong with that request. Please try again.