Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove algorithm description header
  • Loading branch information
pathmapper authored and nyalldawson committed Sep 6, 2021
1 parent dcef058 commit 4659870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/gui/HelpEditionDialog.py
Expand Up @@ -85,8 +85,7 @@ def accept(self):
QDialog.accept(self)

def getHtml(self):
s = self.tr('<h2>Algorithm description</h2>\n')
s += '<p>' + self.getDescription(self.ALG_DESC) + '</p>\n'
s = '<p>' + self.getDescription(self.ALG_DESC) + '</p>\n'
s += self.tr('<h2>Input parameters</h2>\n')
for param in self.alg.parameterDefinitions():
if param.flags() & QgsProcessingParameterDefinition.FlagHidden or param.isDestination():
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingutils.cpp
Expand Up @@ -1038,8 +1038,8 @@ QString QgsProcessingUtils::formatHelpMapAsHtml( const QVariantMap &map, const Q
return QString();
};

QString s = QObject::tr( "<html><body><h2>Algorithm description</h2>\n" );
s += QStringLiteral( "<p>" ) + getText( QStringLiteral( "ALG_DESC" ) ) + QStringLiteral( "</p>\n" );
QString s;
s += QStringLiteral( "<html><body><p>" ) + getText( QStringLiteral( "ALG_DESC" ) ) + QStringLiteral( "</p>\n" );

QString inputs;
const auto parameterDefinitions = algorithm->parameterDefinitions();
Expand Down

0 comments on commit 4659870

Please sign in to comment.