- 16 Mar, 2001 18 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
cStringIO.
-
Guido van Rossum authored
-
Guido van Rossum authored
items and start and end tags without attributes into a single rawtext item. We could do more, by also changing start tags with only plain (non-substituted) attributes into rawtext and collapsing. After breakfast.
-
Guido van Rossum authored
- add getCode() interface to TALGenerator - remove premature optimization from emitRawText() - rework unEmitNewlineWhitespace() so it works with unoptimized code - use getCode() in HTMLTALParser and TALParser
-
Guido van Rossum authored
-
Guido van Rossum authored
Move quote() function here from TALInterpreter.
-
Guido van Rossum authored
-
Guido van Rossum authored
references, introduced by the line number / offset code.
-
Chris McDonough authored
-
- 15 Mar, 2001 18 commits
-
-
Guido van Rossum authored
Changed the interface for the NestingError exception; it now has tag, lineno, and offset attributes, and reports these in its __str__; the tagstack is no longer needed. Moved all the "internal thingies" to the end; renamed some for more consistent naming.
-
Guido van Rossum authored
retrieve.
-
Guido van Rossum authored
-
Guido van Rossum authored
Added a loop over all filename arguments. It now prints the filename, the compilation time, and the interpretation time for each argument.
-
Guido van Rossum authored
Add new test files for HTML, plus their output (not yet hand-checked). Fix the input *and* output for test9 -- it was referencing an undefined macro before.
-
Fred Drake authored
When checking for auto-closure of list- and table-related tags, be sensitive to the specific tag in hand so that we do not close too many tags.
-
Fred Drake authored
Allow colons and underscores in element type names.
-
Fred Drake authored
Make sure we always flush stdout before switch to stderr.
-
Fred Drake authored
Do not start the traceback on the same line as the name of the file we are testing.
-
Fred Drake authored
Define a NestingError exception that gives a reasonable error message when the open element stack does not contain the tag passed to finish_endtag(). The new message gives us the tag that was seen and the contents of the tag stack at the time.
-
Guido van Rossum authored
stopping on the first exception. Add -q option that supprresses most output (diffs and tracebacks).
-
Guido van Rossum authored
-
Fred Drake authored
Remove code to support the null-end-tag support (<span/.../); this is *never* used with HTML. Removing this simply reduces the number of special cases that clutter the start-tag parsing. Add support for XHTML-style end-tags (<img src="foo.gif" />).
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Jim Fulton authored
-
Guido van Rossum authored
to TALGenerator, so it can be reused by HTMLTALParser. Also got rid of the CharacterData and Comment handlers in TALParser -- the Default handler does the right thing already.
-
Guido van Rossum authored
HTML TAL parser. This moves the "fixing" of the attributes (really changing them from "<namespace> name" to "<prefix>:name") to the same loop over the attributes where the presence of unrecognized attributes is reported, simplifying life later.
-
- 14 Mar, 2001 4 commits
-
-
Fred Drake authored
Update the HTML test to ensure that automagical placement of end tags only happens for implied end tags and not all end tags in the affected group. This also corrects for the bug where paragraph-level tags would close themselves (before they opened!) if they implicitly closed anything at all.
-
Fred Drake authored
Fix a bug that caused paragraph-level markup to close itself when implicitly closing anything. For some elements, when the end tag is implied, insert the tag before any whitespace at the end of the text being enclosed. This makes the generated end tags "feel" more like human-generated markup.
-
Fred Drake authored
If there are errors, generate a non-zero return code.
-