[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/OpenTAL tal_handler.py
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/OpenTAL tal_handler.py |
Date: |
Mon, 27 Jan 2003 14:50:37 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/01/27 14:50:36
Modified files:
OpenTAL : tal_handler.py
Log message:
allow ids in attributes, define and repeat to be separated by any
whitespace instead of a single space character
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenTAL/tal_handler.py.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
Patches:
Index: opental/OpenTAL/tal_handler.py
diff -u opental/OpenTAL/tal_handler.py:1.26 opental/OpenTAL/tal_handler.py:1.27
--- opental/OpenTAL/tal_handler.py:1.26 Mon Jan 27 02:01:50 2003
+++ opental/OpenTAL/tal_handler.py Mon Jan 27 14:50:36 2003
@@ -178,7 +178,7 @@
return context.compile(value)
def compile_repeat(element, context, value):
- name, value = value.split(' ', 1)
+ name, value = value.split(None, 1)
return name, context.compile(value)
def compile_replace_or_content(element, context, value):
@@ -188,7 +188,7 @@
def compile_attributes(element, context, value):
r = []
for item in split_multiple(value):
- spec, expr = item.split(' ', 1)
+ spec, expr = item.split(None, 1)
if ':' in spec:
ns, name = spec.split(':', 1)
else: