Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Never close self-closing tags
git-svn-id: http://svn.textmate.org/trunk/Bundles/HTML.tmbundle@8083 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
ciaran committed Aug 30, 2007
1 parent ffb83c3 commit b82fcf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Commands/Insert Close Tag.plist
Expand Up @@ -18,10 +18,12 @@ end
before = /(.*\n){#{line-1}}.{#{line_index}}/.match(doc)[0]
before.gsub!(/<[^>]+\/\s*>/i, '')
# remove all self-closing tags
if ENV.has_key? 'TM_HTML_EMPTY_TAGS' then
if ENV.has_key?('TM_HTML_EMPTY_TAGS') then
empty_tags = ENV['TM_HTML_EMPTY_TAGS']
before.gsub!(/<(#{empty_tags})\b[^>]*>|<[^>]+\/\s*>/i, '')
before.gsub!(/<(#{empty_tags})\b[^>]*>/, '')
end
# remove all comments
Expand Down

0 comments on commit b82fcf9

Please sign in to comment.