From 911f8eaeca7f4bfd0cc7c4b7a56645f316b22637 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Thu, 21 May 2009 16:46:05 +0000 Subject: [PATCH] tab -> whitespace fixes svn path=/trunk/KDE/kdegraphics/okular/; revision=971089 --- core/textdocumentgenerator.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/textdocumentgenerator.cpp b/core/textdocumentgenerator.cpp index ff3a6de95..1bada2da5 100644 --- a/core/textdocumentgenerator.cpp +++ b/core/textdocumentgenerator.cpp @@ -428,12 +428,12 @@ Okular::ExportFormat::List TextDocumentGenerator::exportFormats( ) const formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::PlainText ) ); formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::PDF ) ); #if QT_VERSION >= 0x040500 - if ( QTextDocumentWriter::supportedDocumentFormats().contains( "ODF" ) ) { - formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::OpenDocumentText ) ); - } - if ( QTextDocumentWriter::supportedDocumentFormats().contains( "HTML" ) ) { - formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::HTML ) ); - } + if ( QTextDocumentWriter::supportedDocumentFormats().contains( "ODF" ) ) { + formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::OpenDocumentText ) ); + } + if ( QTextDocumentWriter::supportedDocumentFormats().contains( "HTML" ) ) { + formats.append( Okular::ExportFormat::standardFormat( Okular::ExportFormat::HTML ) ); + } #endif } @@ -468,13 +468,13 @@ bool TextDocumentGenerator::exportTo( const QString &fileName, const Okular::Exp return true; #if QT_VERSION >= 0x040500 } else if ( format.mimeType()->name() == QLatin1String( "application/vnd.oasis.opendocument.text" ) ) { - QTextDocumentWriter odfWriter( fileName, "odf" ); + QTextDocumentWriter odfWriter( fileName, "odf" ); - return odfWriter.write( d->mDocument ); + return odfWriter.write( d->mDocument ); } else if ( format.mimeType()->name() == QLatin1String( "text/html" ) ) { - QTextDocumentWriter odfWriter( fileName, "html" ); + QTextDocumentWriter odfWriter( fileName, "html" ); - return odfWriter.write( d->mDocument ); + return odfWriter.write( d->mDocument ); #endif } return false;