Committer: ahassanGet rid of whitespace around module content; we put in newlines when embedding it inside an lj-embed tag (eg, when editing), and as a result we keep adding \n's to the content.
U branches/r6/cgi-bin/LJ/EmbedModule.pm
Modified: branches/r6/cgi-bin/LJ/EmbedModule.pm
===================================================================
--- branches/r6/cgi-bin/LJ/EmbedModule.pm 2007-04-21 21:19:43 UTC (rev 11151)
+++ branches/r6/cgi-bin/LJ/EmbedModule.pm 2007-04-23 06:56:09 UTC (rev 11152)
@@ -419,7 +419,8 @@
return defined $dbid ? $content : "[Invalid lj-embed id $moduleid]";
}
- return $content || '';
+ # get rid of whitespace around the content
+ return LJ::trim($content) || '';
}
sub memkey {