소스 검색

removed unneeded Trim() from chm fiftimain

git-svn-id: trunk@20418 -
andrew 13 년 전
부모
커밋
3dd4514724
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);