qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.4k stars 2.98k forks source link

Graphical modeler: Documentation text shows automatically added CSS-statements #53036

Open SirCharlotte opened 1 year ago

SirCharlotte commented 1 year ago

What is the bug or the crash?

If I make a new model and add some description for the algorithm, the text shows automatically added CSS-statements. When opening the model in the qgis main window and looking into the documentation of the model algorithm on the right side of the window p, li { white-space: pre-wrap; } is added as the first line. The model works and it isn't a big problem, but if you want people without a programming backround to use the model, they get confused.

Steps to reproduce the issue

  1. Go to 'Create new Model...'
  2. Create some dummy Model
  3. Click on 'Edit model help'
  4. Write a descripton for the algorithm Snap1
  5. If you open the html file it looks like this: Snap2
  6. Save and close the model
  7. Double-click on the new Model Snap3

Versions

QGIS version | 3.28.1-Firenze | QGIS code revision | fde3b8fbb8c -- | -- | -- | -- Qt version | 5.15.3 Python version | 3.9.5 GDAL/OGR version | 3.6.0 PROJ version | 9.1.0 EPSG Registry database version | v10.074 (2022-08-01) GEOS version | 3.11.1-CAPI-1.17.1 SQLite version | 3.39.4 PDAL version | 2.4.3 PostgreSQL client version | unknown SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.13.1 OS version | Windows 10 Version 2009   |   |   |   Active Python plugins actions_for_relations | 1.2.0 autoSaver | 2.6 clusterpoints | 5.1 connect_points | 0.2 geo_sim_processing | 1.2.0 go2streetview | 8.6 HCMGIS | 23.2.1 ImportPhotos | 3.0.5 inspireatomclient | 0.8.1 joinlines | 0.4 kart | 1.0.4 loadthemall | 3.3.0 mapflow | 1.8.0 mmqgis | 2021.9.10 NNJoin | 3.1.3 nominatim | 1.4.5 ORStools | 1.5.2 plugin_reloader | 0.9.2 Qgis2threejs | 2.7.1 qgiscloud | 3.7.1 QNEAT3 | 1.0.4 QuickOSM | 2.1.1 quick_map_services | 0.19.33 refFunctions | 1.6 remotedebug | 0.4.3 save_attributes | 1.0 SemiAutomaticClassificationPlugin | 7.10.11 db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 QGIS version 3.28.1-Firenze QGIS code revision [fde3b8fbb8c](https://github.com/qgis/QGIS/commit/fde3b8fbb8c) Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.6.0 PROJ version 9.1.0 EPSG Registry database version v10.074 (2022-08-01) GEOS version 3.11.1-CAPI-1.17.1 SQLite version 3.39.4 PDAL version 2.4.3 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 2009 Active Python plugins actions_for_relations 1.2.0 autoSaver 2.6 clusterpoints 5.1 connect_points 0.2 geo_sim_processing 1.2.0 go2streetview 8.6 HCMGIS 23.2.1 ImportPhotos 3.0.5 inspireatomclient 0.8.1 joinlines 0.4 kart 1.0.4 loadthemall 3.3.0 mapflow 1.8.0 mmqgis 2021.9.10 NNJoin 3.1.3 nominatim 1.4.5 ORStools 1.5.2 plugin_reloader 0.9.2 Qgis2threejs 2.7.1 qgiscloud 3.7.1 QNEAT3 1.0.4 QuickOSM 2.1.1 quick_map_services 0.19.33 refFunctions 1.6 remotedebug 0.4.3 save_attributes 1.0 SemiAutomaticClassificationPlugin 7.10.11 db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [ ] I tried with a new QGIS profile ### Additional context _No response_
chleidersdorff commented 5 months ago

this is still an issue with 3.34.4, any plans to fix this?

AlisterH commented 4 months ago

FWIW it seems this can be worked around by manually editing the junk out of .model3 file: image

AlisterH commented 4 months ago

There are other WYSIWG issues with the model builder too, e.g. with the rendering of bullet lists. If you apply list formatting to some lines they look fine when you are editing them: image But only the first item is bulleted when in use: image It seems you have to be careful to apply list formatting to each item separately, although even then they're rendered differently from in the editor - there is a gap between each item, and I wonder if that means they're a separate list, or if it is css formatting that isn't applied in the editor or something.

effjot commented 1 month ago

Issue still persists in 3.4.6