Fix: Can't search alphabetical words on the HTML quick search generated with language='ja'. Closes #1340

This commit is contained in:
Takayuki Shimizukawa
2014-01-07 08:50:37 +09:00
parent e61f316c74
commit b17fea855b
2 changed files with 5 additions and 2 deletions

View File

@@ -12,6 +12,9 @@ Bugs fixed
``object.__init__`` docstring when class does not have ``__init__``.
This caused by a change for #1138.
* #1340: Can't search alphabetical words on the HTML quick search generated
with language='ja'.
Release 1.2 (released Dec 10, 2013)
===================================

View File

@@ -236,7 +236,7 @@ class TinySegmenter(object):
score += self.ts_(self.TQ4__, p3 + c2 + c3 + c4)
p = u'O'
if score > 0:
result.append(word)
result.append(word.strip())
word = u''
p = u'B'
p1 = p2
@@ -244,7 +244,7 @@ class TinySegmenter(object):
p3 = p
word += seg[i]
result.append(word)
result.append(word.strip())
return result