gparted r912 - in trunk: . src
- From: gedakc svn gnome org
- To: svn-commits-list gnome org
- Subject: gparted r912 - in trunk: . src
- Date: Wed, 24 Sep 2008 23:42:04 +0000 (UTC)
Author: gedakc
Date: Wed Sep 24 23:42:04 2008
New Revision: 912
URL: http://svn.gnome.org/viewvc/gparted?rev=912&view=rev
Log:
Enhanced detail log gparted_details.htm to pass HTML validator
Modified:
trunk/ChangeLog
trunk/src/Dialog_Progress.cc
Modified: trunk/src/Dialog_Progress.cc
==============================================================================
--- trunk/src/Dialog_Progress.cc (original)
+++ trunk/src/Dialog_Progress.cc Wed Sep 24 23:42:04 2008
@@ -344,14 +344,28 @@
std::ofstream out( dialog .get_filename() .c_str() ) ;
if ( out )
{
+ //Write out proper HTML start
+ out << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" ;
+ out << "<HTML>" ;
+ out << "<HEAD>" ;
+ out << " <META http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">" ;
+ out << " <TITLE>GParted Details</TITLE>" ;
+ out << "</HEAD>" ;
+ out << "<BODY>" ;
+
+ out << "<P>" ;
out << "GParted " << VERSION << "<BR><BR>" << std::endl ;
- out << "Libparted " << signal_get_libparted_version .emit() << "<BR><BR>" << std::endl ;
+ out << "Libparted " << signal_get_libparted_version .emit() ;
+ out << "</P>" << std::endl ;
for ( unsigned int t = 0 ; t < operations .size() ; t++ )
{
echo_operation_details( operations[ t ] ->operation_detail, out ) ;
- out << "<BR>========================================<BR><BR>" << std::endl ;
+ out << "<P>========================================</P>" << std::endl ;
}
-
+
+ //Write out proper HTML finish
+ out << "</BODY>" ;
+ out << "</HTML>" ;
out .close() ;
}
}
@@ -362,7 +376,7 @@
//replace '\n' with '<br>'
Glib::ustring temp = operationdetail .get_description() ;
for ( unsigned int index = temp .find( "\n" ) ; index < temp .length() ; index = temp .find( "\n" ) )
- temp .replace( index, 1, "<BR />" ) ;
+ temp .replace( index, 1, "<BR>" ) ;
//and export everything to some kind of html...
out << "<TABLE border=0>" << std::endl ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]