Enhanced detail log gparted_details.htm to pass HTML validator
svn path=/trunk/; revision=912
This commit is contained in:
parent
a91d4e2783
commit
465e30c0b7
|
@ -1,3 +1,10 @@
|
||||||
|
2008-09-24 Curtis Gedak <gedakc@gmail.com>
|
||||||
|
|
||||||
|
* src/Dialog_Progress.cc: Added proper HTML start and finish.
|
||||||
|
- gparted_details.htm now passes as HTML 4.0 Transitional
|
||||||
|
in the validator found at http://validator.w3.org/
|
||||||
|
- Closes GParted bug #525347
|
||||||
|
|
||||||
2008-09-22 Curtis Gedak <gedakc@gmail.com>
|
2008-09-22 Curtis Gedak <gedakc@gmail.com>
|
||||||
|
|
||||||
* configure.in,
|
* configure.in,
|
||||||
|
|
|
@ -344,14 +344,28 @@ void Dialog_Progress::on_save()
|
||||||
std::ofstream out( dialog .get_filename() .c_str() ) ;
|
std::ofstream out( dialog .get_filename() .c_str() ) ;
|
||||||
if ( out )
|
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 << "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++ )
|
for ( unsigned int t = 0 ; t < operations .size() ; t++ )
|
||||||
{
|
{
|
||||||
echo_operation_details( operations[ t ] ->operation_detail, out ) ;
|
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() ;
|
out .close() ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -362,7 +376,7 @@ void Dialog_Progress::echo_operation_details( const OperationDetail & operationd
|
||||||
//replace '\n' with '<br>'
|
//replace '\n' with '<br>'
|
||||||
Glib::ustring temp = operationdetail .get_description() ;
|
Glib::ustring temp = operationdetail .get_description() ;
|
||||||
for ( unsigned int index = temp .find( "\n" ) ; index < temp .length() ; index = temp .find( "\n" ) )
|
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...
|
//and export everything to some kind of html...
|
||||||
out << "<TABLE border=0>" << std::endl ;
|
out << "<TABLE border=0>" << std::endl ;
|
||||||
|
|
Loading…
Reference in New Issue