ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Outputer.cpp
(Generate patch)

Comparing trunk/Search/Outputer.cpp (file contents):
Revision 29 by douglas, 2003-01-02T19:42:33-08:00 vs.
Revision 30 by douglas, 2003-01-07T12:57:18-08:00

# Line 141 | Line 141 | void Outputer::header(const string& quer
141                  tag(line, "<?common?>", common[0]);
142                  tag(line, "<?manycommon?>", manycommon(common));
143  
144 <                cout << line << "\n";
144 >                cout << line << (fin.good() ? "\n" : "");
145          }
146  
147          fin.close();
# Line 192 | Line 192 | void Outputer::body()
192                          tag(line, "<?description?>", description);
193                          tag(line, "<?size?>", size);
194  
195 <                        cout << line << "\n";
195 >                        cout << line << (fin.good() ? "\n" : "");
196                  }
197  
198                  fin.close();
# Line 226 | Line 226 | void Outputer::footer(const string& quer
226                  tag(line, "<?common?>", common[0]);
227                  tag(line, "<?manycommon?>", manycommon(common));
228  
229 <                cout << line << "\n";
229 >                cout << line << (fin.good() ? "\n" : "");
230          }
231  
232          fin.close();
# Line 245 | Line 245 | void Outputer::notfound(const string& qu
245  
246                  tag(line, "<?query?>", query);
247  
248 <                cout << line << "\n";
248 >                cout << line << (fin.good() ? "\n" : "");
249          }
250  
251          fin.close();
# Line 310 | Line 310 | string Outputer::pages(string query, uns
310                  tag(line, "<?query?>", query);
311                  tag(line, "<?previous?>", previous);
312  
313 <                lines += line + "\n";
313 >                lines += line + (fin.good() ? "\n" : "");
314          }
315  
316          fin.close();
# Line 359 | Line 359 | string Outputer::pages(string query, uns
359                                  tag(line, "<?num?>", num);
360                          }
361  
362 <                        lines += line + "\n";
362 >                        lines += line + (fin.good() ? "\n" : "");
363                  }
364  
365                  fin.close();
# Line 387 | Line 387 | string Outputer::pages(string query, uns
387                  tag(line, "<?query?>", query);
388                  tag(line, "<?next?>", next);
389  
390 <                lines += line + "\n";
390 >                lines += line + (fin.good() ? "\n" : "");
391          }
392  
393          fin.close();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines