My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 13: Expressions behave differently inside macros. Specifically, zeros become blank.
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by ojeeves, Jan 07, 2008
What steps will reproduce the problem?
1. call a macro that has ${variable} where variable is 0

What is the expected output? What do you see instead?

I expect '0' to be included in the emitted HTML. Instead, nothing it emitted.

What version of the product are you using? On what operating system?

TrimPath template 1.0.38 on Debian Linux using Iceweasel (Firefox) 2.0.0.11

Please provide any additional information below.

See attached test page that demonstrates the problem.
 
test.html
665 bytes   Download
Comment 1 by ojeeves, Jan 07, 2008
See:
http://trimpath.com/forum/viewtopic.php?pid=2759#p2759

Proposed fix is included as a patch.
trimpath-template-macro-write.patch
774 bytes   Download
Sign in to add a comment

Hosted by Google Code