Changeset 5038
- Timestamp:
- Dec 21, 2008, 1:58:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
includesourcepartialplugin/0.11/includesource/IncludeSource.py
r5023 r5038 3 3 from trac.mimeview.api import IHTMLPreviewAnnotator, Mimeview 4 4 from trac.wiki.api import parse_args 5 from os import linesep6 5 from genshi.builder import tag 7 6 from genshi.filters import Transformer … … 174 173 # b) have the render method accept a list/iterator of lines 175 174 # instead of only accepting a string (which it then splits) 176 lines = src.split( linesep)175 lines = src.split('\n') 177 176 linecount = len(lines) 178 177 … … 193 192 start += 1 194 193 195 return linesep.join(src), start, end194 return '\n'.join(src), start, end 196 195 197 196 class GivenLineNumberAnnotator(Component):
Note: See TracChangeset
for help on using the changeset viewer.