public
Description: TextMate bundle - Amplified Mate Productivity
Homepage: http://code.leadmediapartners.com/tools/rubyamp
Clone URL: git://github.com/timcharper/rubyamp.git
Allows the valid whitespace separating attributes for an xml element to 
include newlines. (thanks to Stephen Bannasch)
timcharper (author)
Mon Jul 14 14:08:14 -0700 2008
commit  6961448607c8488719b765130171f54756dbe2ce
tree    4d30aefe97a45ff80d76d5d666cecd5b42a49621
parent  395c9b2a81f2aaa10cbf3d81927504cb062e7a77
...
54
55
56
57
 
58
59
60
...
54
55
56
 
57
58
59
60
0
@@ -54,7 +54,7 @@ input.scan(/(<[^>]+>)([^<]*)/m).each do |tag, space|
0
     end
0
     new_line_required = true
0
     ignore_next_close = false
0
- when /^<([^\s\/>]+)\s*(.*?)(\/){0,1}\s*>/
0
+ when /^<([^\s\/>]+)\s*(.*?)(\/){0,1}\s*>/m
0
     tag_name = $1
0
     params = $2
0
     self_closing = ($3 == "/")

Comments

    No one has commented yet.