Interesting glitch: if the very last thing in the
clonetotype
nodelet is the identifier of a heredoc, you get an error
much like the following:
Can't find string terminator " END" anywhere before EOF
at (eval 46801) line 10.
1: sub {
2: my $CURRENTNODE=shift;
3: my $NODE=$GNODE;
4: my $cloner = getNode('clone to type',
'restricted_superdoc');
5: my $params = {
6: srcnode_id => $NODE->{node_id},
7: node_id => $cloner->{node_id}
8: };
9: my $url = urlGen($params);
10: return <<END;
11: <a href=$url>
12: <img src="images/icon_cloneto.gif" alt="clone to
type">
13: </a>
14: END
15: }
trim whitespace after embedded code in createAnonSub
Logged In: YES
user_id=2274
Odd. It feels like a bug in createAnonSub. Does this patch
(whitespace only) fix it?
If not, does adding a newline character (\n) right after
$code work any better?