Greetings, There are lots of times where I'd like to split up a critical part of HTML into multiple components, but <TMPL_INCLUDE>ing them messes things up because of the \n's that are added at the end of each include. The template files themselves don't contain any newlines or carriage returns but numerous tests have demonstrated that a \n is prepended after each include.
Normally, this isn't an issue with HTML but there are cases where this extra characters causes problems (display problems in certain HTML layouts, trouble when it messes with stuff like HREFs). For instance, we have a system where each template can refer to appropriate "hints". In order to avoid having to make the code aware of the textual content of the template, we simply created two templates: A: ------------- <a href="#" onClick="window.open('<TMPL_VAR NAME='hintbasehref'>/ ------------- and B: ------------- ','hint','scrollbars=yes,width=450,height=295')"><img src="blah" /></a> ------------- Which simply allows other templates to: <TMPL_INCLUDE NAME='A'>NameOfThisHint<TMPL_INCULDE NAME='B'> leaving the program itself blissfully unaware of the mundane details (i.e. exactly which templates contain which hints). However, because of the newlines this is output as : <a href="#" onClick="window.open('http://example.com/hint.cgi/ NameOfThisHint','hint','scrollbars=yes,width=450,height=295')"><img src="blah" /></a> and doesn't work... Anyhow, I've groveled through the code a bit and suspect it has something to do with the "line count" but I can't figure out where these newlines are coming from or how to get rid of 'em. Any help would be appreciated. TIA, -- Pat Deegan http://www.psychogenic.com/ PGP Key: http://www.keyserver.net 0x03F86A50 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users