summaryrefslogtreecommitdiffstats
path: root/segment.py
diff options
context:
space:
mode:
Diffstat (limited to 'segment.py')
-rwxr-xr-xsegment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/segment.py b/segment.py
index b65bfd7..ef7a53b 100755
--- a/segment.py
+++ b/segment.py
@@ -57,9 +57,9 @@ def handleOneIndex(indexpath):
#begin processing
indexfile = open(indexpath, 'r')
for oneline in indexfile.readlines():
- (title, textpath) = oneline.split('#')
#remove tailing '\n'
- textpath = textpath.rstrip(os.linesep)
+ oneline = oneline.rstrip(os.linesep)
+ (title, textpath) = oneline.split('#')
infile = config.getTextDir() + textpath
outfile = config.getTextDir() + textpath + config.getSegmentPostfix()
reportfile = config.getTextDir() + textpath + \