Changeset 1005 for trunk/lib/File.cc


Ignore:
Timestamp:
Jan 3, 2010, 4:05:25 AM (12 years ago)
Author:
Peter Johansson
Message:

refs #405. Move replicated code to a function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r978 r1005  
    33/*
    44  Copyright (C) 2005, 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
     5  Copyright (C) 2010 Peter Johansson
    56
    67  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    384385      ss << imagefile;
    385386    os << "<p class=\"plot\">\n";
    386     os << "<object data='" << ss.str() << "' type='image/svg+xml' width='600'>\n"
    387        << "<embed src='" << ss.str() << "' type='image/svg+xml' width='600' />\n"
    388        << "</object>\n";
     387    os << image("svg", ss.str());
    389388    os << "</p>\n";
    390389
Note: See TracChangeset for help on using the changeset viewer.