If macro returned something write it to the response object regardless if

the macro wrote to the response itself or not.
This commit is contained in:
hns 2002-05-24 22:51:19 +00:00
parent 5b862803c6
commit 5a589d4bd6

View file

@ -333,7 +333,9 @@ public class Skin {
String suffix = (String) parameters.get ("suffix"); String suffix = (String) parameters.get ("suffix");
reval.res.insert (oldLength, prefix); reval.res.insert (oldLength, prefix);
reval.res.write (suffix); reval.res.write (suffix);
} else if (v != null) { }
// if macro returned something append it to response
if (v != null) {
writeToResponse (v.toString (), reval.res); writeToResponse (v.toString (), reval.res);
} }
} else { } else {