[tracker] litracker-extract: Count last word when normalizing
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] litracker-extract: Count last word when normalizing
- Date: Thu, 18 Mar 2010 19:55:18 +0000 (UTC)
commit 3fc99bbdc34d96b0d75458daa49fff39e696846f
Author: Ivan Frade <ivan frade nokia com>
Date: Thu Mar 18 21:52:41 2010 +0200
litracker-extract: Count last word when normalizing
src/libtracker-extract/tracker-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-utils.c b/src/libtracker-extract/tracker-utils.c
index 00599ad..375236b 100644
--- a/src/libtracker-extract/tracker-utils.c
+++ b/src/libtracker-extract/tracker-utils.c
@@ -222,6 +222,10 @@ tracker_text_normalize (const gchar *text,
}
if (n_words) {
+ if (!in_break) {
+ /* Count the last word */
+ words += 1;
+ }
*n_words = words;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]