Changeset 286
- Timestamp:
- May 7, 2007, 6:07:23 PM (16 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/HtmlStream.cc
r235 r286 73 73 } 74 74 75 76 std::ostream& HtmlStream::stream(void) 77 { 78 return os_; 79 } 80 75 81 }} // end of namespace svndigest and namespace theplu -
trunk/lib/HtmlStream.h
r234 r286 54 54 void print(std::stringstream&); 55 55 56 /// 57 /// \return reference to underlying ostream 58 /// 59 std::ostream& stream(void); 60 56 61 private: 57 62 /// -
trunk/lib/Makefile.am
r285 r286 30 30 HtmlStream.h html_utility.h Node.h Parser.h rmdirhier.h \ 31 31 Stats.h SVN.h SVNblame.h \ 32 SVNinfo.h SVNlog.h SVNproperty.h utility.h32 SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h 33 33 34 34 libsvndigest_la_SOURCES = ColumnStream.cc Commitment.cc Configuration.cc \ … … 36 36 Gnuplot.cc GnuplotFE.cc HtmlStream.cc \ 37 37 html_utility.cc Node.cc Parser.cc rmdirhier.cc Stats.cc SVN.cc \ 38 SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc utility.cc38 SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc 39 39 40 40 clean-local: -
trunk/lib/first_page.cc
r285 r286 32 32 #include "Stats.h" 33 33 #include "SVNlog.h" 34 #include "Trac.h" 34 35 #include "utility.h" 35 36 #include <config.h> // this header file is created by configure … … 182 183 if (conf->trac_ticket().empty()) 183 184 hs << mess; 184 else { // make anchors to trac 185 char c; 186 std::stringstream ss(mess); 187 for (ss.get(c); ss.good(); ss.get(c)) { 188 if (c=='#') { 189 int ticket=0; 190 ss >> ticket; 191 if (!ss.fail()){ 192 std::stringstream s; 193 s << ticket; 194 os << anchor(conf->trac_ticket()+s.str(),"#"+s.str()); 195 } 196 else { 197 ss.clear(std::ios::goodbit); 198 hs << c; 199 } 200 } 201 else 202 hs << c; 203 } 185 else {// make anchors to trac 186 Trac trac(hs); 187 trac.print(mess); 204 188 } 205 189
Note: See TracChangeset
for help on using the changeset viewer.