[Checkins] SVN: Sandbox/malthe/chameleon.html/ Add newline character between glob-exploded tags.

Malthe Borch mborch at gmail.com
Thu Oct 30 10:07:03 EDT 2008


Log message for revision 92701:
  Add newline character between glob-exploded tags.

Changed:
  U   Sandbox/malthe/chameleon.html/CHANGES.txt
  U   Sandbox/malthe/chameleon.html/src/chameleon/html/language.py

-=-
Modified: Sandbox/malthe/chameleon.html/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.html/CHANGES.txt	2008-10-30 14:03:31 UTC (rev 92700)
+++ Sandbox/malthe/chameleon.html/CHANGES.txt	2008-10-30 14:07:01 UTC (rev 92701)
@@ -4,6 +4,8 @@
 Head
 ~~~~
 
+- Add newline character between glob-exploded tags. [malthe]
+
 - Use relative URL if resource location component is
   unavailable. [malthe]
 

Modified: Sandbox/malthe/chameleon.html/src/chameleon/html/language.py
===================================================================
--- Sandbox/malthe/chameleon.html/src/chameleon/html/language.py	2008-10-30 14:03:31 UTC (rev 92700)
+++ Sandbox/malthe/chameleon.html/src/chameleon/html/language.py	2008-10-30 14:07:01 UTC (rev 92701)
@@ -226,11 +226,11 @@
             else:
                 new = deepcopy(tag)
                 new.attrib[attribute] = match
+                tag.addnext(new)
+                tag.tail = new.tail
                 new.tail = "\n"
-                tag.tail = "\n"
-                tag.addnext(new)
                 tag = new
-
+                
     def glob_resources(self, root, attribute, xpath, ns={}):
         """Resource globbing"""
         tags = root.xpath(xpath, namespaces=ns)



More information about the Checkins mailing list