From ccd0ea72b4635259e3555925389adeac8515c495 Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Thu, 10 Nov 2011 19:33:50 +0100 Subject: [PATCH] ENH: add missing close balise --- .../otbWrapperApplicationHtmlDocGenerator.cxx | 11 ++++++----- Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Code/ApplicationEngine/otbWrapperApplicationHtmlDocGenerator.cxx b/Code/ApplicationEngine/otbWrapperApplicationHtmlDocGenerator.cxx index 9aeab17844..b22b9509c8 100644 --- a/Code/ApplicationEngine/otbWrapperApplicationHtmlDocGenerator.cxx +++ b/Code/ApplicationEngine/otbWrapperApplicationHtmlDocGenerator.cxx @@ -189,6 +189,7 @@ void ApplicationHtmlDocGenerator::GetDocParameters( const Application::Pointer a } else { + oss << "<li>"; otbDocHtmlBodyBoldCodeMacro( std::string("[param] ").append( param->GetName() ).append(":")); otbDocHtmlBodyMacro( param->GetDescription() ); oss << "</li>"; @@ -263,11 +264,11 @@ void ApplicationHtmlDocGenerator::GetDocParameterChoice( const Application::Poin { itkGenericExceptionMacro("Invalid parameter type for key "<<key<<", wait for ChoiceParameter..."); } - ChoiceParameter * choice = dynamic_cast<ChoiceParameter *>(paramCh); - const std::vector<std::string> appKeyList = choice->GetChoiceKeys(); - unsigned int nbOfParam = choice->GetNbChoices(); - itk::OStringStream oss; - oss<<"<ul>"; + ChoiceParameter * choice = dynamic_cast<ChoiceParameter *>(paramCh); + const std::vector<std::string> appKeyList = choice->GetChoiceKeys(); + unsigned int nbOfParam = choice->GetNbChoices(); + itk::OStringStream oss; + oss<<"<ul>"; for( unsigned int i=0; i<nbOfParam; i++ ) { diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx index 032101fd6a..016c237091 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx @@ -183,7 +183,7 @@ QWidget* QtWidgetView::CreateDoc() text->setDocument(doc); - std::cout<<text->toHtml().toStdString()<<std::endl; + //std::cout<<text->toHtml().toStdString()<<std::endl; return text; } -- GitLab