Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added freemarker template <#tag></#tag> support to auto-close tag fun…

…ctionality.
  • Loading branch information...
commit 711a266e2c6424ddbc46cd5bd93894ca58c4f92e 1 parent 4076708
@marqsm marqsm authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  Tag.py
  2. +2 −2 tag_indent.py
View
2  Tag.py
@@ -4,7 +4,7 @@ class Tag():
def __init__(self):
- Tag.regexp_is_valid = re.compile("^[a-z0-9\:\-_]+$", re.I);
+ Tag.regexp_is_valid = re.compile("^[a-z0-9#\:\-_]+$", re.I);
Tag.regexp_self_closing_optional = re.compile("^<?(\?xml|\!|area|base|br|col|frame|hr|img|input|link|meta|param|command|embed|source|/?li|/?p)[^a-z]", re.I);
Tag.regexp_self_closing = re.compile("^<?(\?xml|\!|area|base|br|col|frame|hr|img|input|link|meta|param|command|embed|source)[^a-z]", re.I);
Tag.regexp_self_closing_xml = re.compile("^<?(\?xml|\!)[^a-z]", re.I);
View
4 tag_indent.py
@@ -10,8 +10,8 @@
# no indentation
no_indent = re.compile("^</?(head|body)[>| ]", re.I)
-# possible self closing tags: XML------HTML------------------------------------------------HTML5----------------
-self_closing_tags = re.compile("^<(\?|\!|%|area|base|br|col|frame|hr|img|input|link|meta|param|command|embed|source)", re.I)
+# possible self closing tags: XML-------HTML------------------------------------------------HTML5----------------
+self_closing_tags = re.compile("^<(\?|\!|%|#|area|base|br|col|frame|hr|img|input|link|meta|param|command|embed|source)", re.I)
skip_content_of_this_tags_re = re.compile("^<(script|style|pre|code)(>| )", re.I)
Please sign in to comment.
Something went wrong with that request. Please try again.