a/src/qtgui/snippets_w.cpp b/src/qtgui/snippets_w.cpp
...
...
134
    ostringstream oss;
134
    ostringstream oss;
135
    oss << 
135
    oss << 
136
    "<html><head>"
136
    "<html><head>"
137
    "<meta http-equiv=\"content-type\" "
137
    "<meta http-equiv=\"content-type\" "
138
    "content=\"text/html; charset=utf-8\"></head>"
138
    "content=\"text/html; charset=utf-8\"></head>"
139
  "<body>"
139
    "<body style='overflow-x: scroll; white-space: nowrap'>"
140
    "<table style='overflow-x: scroll; white-space: nowrap'>"
140
  "<table>"
141
    ;
141
    ;
142
142
143
    g_hiliter.set_inputhtml(false);
143
    g_hiliter.set_inputhtml(false);
144
    bool nomatch = true;
144
145
145
    for (vector<Rcl::Snippet>::const_iterator it = vpabs.begin(); 
146
    for (vector<Rcl::Snippet>::const_iterator it = vpabs.begin(); 
146
     it != vpabs.end(); it++) {
147
     it != vpabs.end(); it++) {
148
  if (it->page == -1) {
149
      oss << "<tr><td colspan=\"2\">" << 
150
      it->snippet << "</td></tr>" << endl;
151
      continue;
152
  }
147
    list<string> lr;
153
    list<string> lr;
148
    if (!g_hiliter.plaintorich(it->snippet, lr, hdata)) {
154
    if (!g_hiliter.plaintorich(it->snippet, lr, hdata)) {
149
        LOGDEB1(("No match for [%s]\n", it->snippet.c_str()));
155
        LOGDEB1(("No match for [%s]\n", it->snippet.c_str()));
150
        continue;
156
        continue;
151
    }
157
    }
158
  nomatch = false;
152
    oss << "<tr><td>";
159
    oss << "<tr><td>";
153
    if (it->page > 0) {
160
    if (it->page > 0) {
154
        oss << "<a href=\"P" << it->page << "T" << it->term << "\">" 
161
        oss << "<a href=\"P" << it->page << "T" << it->term << "\">" 
155
        << "P.&nbsp;" << it->page << "</a>";
162
        << "P.&nbsp;" << it->page << "</a>";
156
    }
163
    }
157
    oss << "</td><td>" << lr.front().c_str() << "</td></tr>" << endl;
164
    oss << "</td><td>" << lr.front().c_str() << "</td></tr>" << endl;
165
    }
166
    oss << "</table>" << endl;
167
    if (nomatch) {
168
  oss.str("<html><head></head><body>");
169
  oss << "<p>Sorry, no exact match was found within limits. "
170
      "Probably the document is very big "
171
      "and the snippets generator got lost in a maze...</p>" << endl;
158
    }
172
    }
159
    oss << "</body></html>";
173
    oss << "</body></html>";
160
#ifdef SNIPPETS_WEBKIT
174
#ifdef SNIPPETS_WEBKIT
161
    browser->setHtml(QString::fromUtf8(oss.str().c_str()));
175
    browser->setHtml(QString::fromUtf8(oss.str().c_str()));
162
#else
176
#else