Josh Rosenbaum said the following on 07/08/2005 09:58 AM:
Steve Kelem wrote:
If I write
<br/>
in a template, the generated html file contains
<br><br/>
According to http://www.w3schools.com/tags/tag_br.asp
*The <br> tag** *
Definition and Usage
The <br> tag inserts a single line break.
The <br> tag is an empty tag (means that it has no end tag - the
following is wrong: <br></br>).
Differences Between HTML and XHTML
In HTML the <br> tag has no end tag.
In XHTML the <br> tag must be properly closed, like this: <br />.
Steve
Steve,
I think you need to be more specific. TT should not be translating any
html. Are you speaking about a plugin or something?
-- Josh
I'm comparing the source html with the generated (by ttree) html. The
source html has a META tag of xml, so xmlpage/xmltag is being run.
xmltag contains:
[% item.starttag;
item.content(view);
item.endtag
-%]
So I'm guessing that's the culprit. Most tags work with <tag>...</tag>,
but some tags, like br and p, cannot have a closing tag.
Is there a way to detect these special cases and generate the proper tags?
Thanks,
Steve
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates