Browse Source

removed unneeded Trim() from chm fiftimain

git-svn-id: trunk@20418 -
andrew 13 years ago
parent
commit
3dd4514724
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/chm/src/chmfiftimain.pas

+ 2 - 1
packages/chm/src/chmfiftimain.pas

@@ -536,8 +536,9 @@ begin
   FBlockStream.WriteByte(Offset);
 
   // length can be 0 if it is the same word as the last. there is a word entry each for title and content
+
   if Length(NewWord) > 0 then
-    FBlockStream.Write(NewWord[1], Length(Trim(NewWord)));
+    FBlockStream.Write(NewWord[1], Length(NewWord));
 
   FBlockStream.WriteByte(Ord(AWord.IsTitle));
   WriteCompressedIntegerBE(FBlockStream, AWord.DocumentCount);