PKP Bugzilla – Bug 8052
smarty truncate not counting correctly
Last modified: 2013-01-18 14:54:46 PST
Some of the citation output tests broke (some time ago). I now looked a bit closer and it seems that the PKP's own smarty truncate function doesn't work correctly: truncate:4 truncates after 5 characters.
Nlm30CitationSchemaApaFilterTest (and all other citation output tests) reproduce the problem:
This (https://github.com/pkp/pkp-lib/commit/746ec2d4ef726c9d64a6c2aae193d51a54e47386) fix to the truncate function also fixed the test that Florian pointed out. Not sure if we have more problems with the truncate function, but I didn't found any when I fixed it.