linesep issue causes error when using start or end parameters
|Reported by:||anonymous||Owned by:||Chris Heller|
I get errors when trying to show only partial source using the start and end parameters. E.g.
Error: Macro IncludeSource( <snip> , start=13, end=26) failed 'str' object has no attribute 'generate'
It works fine when including the whole source.
I don't know Python so it took me a while to guess it might be related to line endings. I'm testing Trac on Windows with a sync'd svn repository but we mainly use Unix line endings. Hardcoding linesep = '\n' into IncludeSource.py has enabled the correct display of these particular files for my particular instance of Trac, but obviously isn't a proper solution.
(I'm not sure if this is a problem with this plugin or with the way I'm trying to use it. If the latter then sorry for filing this as a defect and please tell me how I should be using it!)