From bf485006fe3c41732393066a0e7f4b51df056fd0 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 27 Aug 2019 16:12:22 +0300 Subject: [PATCH] Make code style checker work with multi-line strings correctly. --- src/BuildPlugin/plugin-Build.xml | 6 ++-- src/FeaturesPlugin/plugin-Features.xml | 6 ++-- .../InitializationPlugin_PyInterp.cpp | 34 ++++++++++--------- src/SketchPlugin/plugin-Sketch.xml | 4 +-- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/BuildPlugin/plugin-Build.xml b/src/BuildPlugin/plugin-Build.xml index b46aa51b1..be1d59997 100644 --- a/src/BuildPlugin/plugin-Build.xml +++ b/src/BuildPlugin/plugin-Build.xml @@ -1,11 +1,11 @@ - - @@ -33,7 +33,7 @@ helpfile="solidFeature.html"> - diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index cec9dd59e..215de85d7 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -114,15 +114,15 @@ - - - diff --git a/src/InitializationPlugin/InitializationPlugin_PyInterp.cpp b/src/InitializationPlugin/InitializationPlugin_PyInterp.cpp index a2f99d56a..57ef46d48 100644 --- a/src/InitializationPlugin/InitializationPlugin_PyInterp.cpp +++ b/src/InitializationPlugin/InitializationPlugin_PyInterp.cpp @@ -228,22 +228,24 @@ bool InitializationPlugin_PyInterp::initContext() Py_INCREF(_local_context); // to avoid "help()" hang in the python console - PyRun_SimpleString("def help(): print(\"Available modules:\\n\ - salome.shaper.model : higher level access to features and data model\\n\ - BuildAPI : Build plugin features allowing to build shapes\\n\ - ConfigAPI : configuration management: preferences and XML properties\\n\ - ConstructionAPI : Construction plugin for auxiliary features creation\\n\ - EventsAPI : application events receiving and emitting manager\\n\ - ExchangeAPI : Exchange plugin with import/export features\\n\ - FeaturesAPI : Features plugin with general 3D features\\n\ - GeomAlgoAPI : geometrical algorithms\\n\ - GeomAPI : geometrical data structures\\n\ - GeomDataAPI : specific geometrical data structures stored in the data model\\n\ - ModelAPI : general low-level interface to access data model\\n\ - ModelHighAPI : general high-level interface to access data model\\n\ - ParametersAPI : Parameters plugin for parameters feature management\\n\ - PartSetAPI : PartSet plugin for management Parts features\\n\ - SketchAPI : Sketch plugin with all sketch features\")"); + const static char* aHelpTxt = "def help(): print(\"Available modules:\\n" + " salome.shaper.model : higher level access to features and data model\\n" + " BuildAPI : Build plugin features allowing to build shapes\\n" + " ConfigAPI : configuration management: preferences and XML properties\\n" + " ConstructionAPI : Construction plugin for auxiliary features creation\\n" + " EventsAPI : application events receiving and emitting manager\\n" + " ExchangeAPI : Exchange plugin with import/export features\\n" + " FeaturesAPI : Features plugin with general 3D features\\n" + " GeomAlgoAPI : geometrical algorithms\\n" + " GeomAPI : geometrical data structures\\n" + " GeomDataAPI : specific geometrical data structures stored in the data model\\n" + " ModelAPI : general low-level interface to access data model\\n" + " ModelHighAPI : general high-level interface to access data model\\n" + " ParametersAPI : Parameters plugin for parameters feature management\\n" + " PartSetAPI : PartSet plugin for management Parts features\\n" + " SketchAPI : Sketch plugin with all sketch features\")"; + + PyRun_SimpleString(aHelpTxt); return PyRun_SimpleString("from math import *") == 0; } diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index a2e09b0f5..118bec3ac 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -301,7 +301,7 @@ - -- 2.39.2