"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/htmlgenerator.cpp" between
ansifilter-2.17.tar.bz2 and ansifilter-2.18.tar.bz2

About: Ansifilter parses common ANSI codes to remove them or to convert them to another colored text file format (HTML, TeX, LaTeX, RTF, Pango or BBCode).

htmlgenerator.cpp  (ansifilter-2.17.tar.bz2):htmlgenerator.cpp  (ansifilter-2.18.tar.bz2)
skipping to change at line 224 skipping to change at line 224
if (addAnchors) { if (addAnchors) {
*out << " id=\"l_" << lineNumber<< "\" "; *out << " id=\"l_" << lineNumber<< "\" ";
} }
*out << " class=\"af_line\">"; *out << " class=\"af_line\">";
*out <<lnum.str() << ( addFunnyAnchors ? "</a> " : "</span> "); *out <<lnum.str() << ( addFunnyAnchors ? "</a> " : "</span> ");
} else { } else {
*out << lnum.str(); //for indentation *out << lnum.str(); //for indentation
} }
} }
}
string HtmlGenerator::getHyperlink(string uri, string txt){
ostringstream os;
os <<"<a href='"<<uri<<"'>"<<txt<<"</a>";
return os.str();
} }
bool HtmlGenerator::printDynamicStyleFile ( const string &outPath ) { bool HtmlGenerator::printDynamicStyleFile ( const string &outPath ) {
//do not overwrite //do not overwrite
ifstream infile(outPath.c_str()); ifstream infile(outPath.c_str());
if (infile.good()) return true; if (infile.good()) return true;
ofstream indexfile ( outPath.c_str() ); ofstream indexfile ( outPath.c_str() );
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)