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.5k stars 2.99k forks source link

HTML widget doesn't work if the parameters of any expression are splitted by a newline #47604

Closed tudorbarascu closed 1 year ago

tudorbarascu commented 2 years ago

What is the bug or the crash?

If you add a HTML Widget:

Basically: concat('a','b') outputs the result but concat('a', 'b') doesn't work cause there's a newline after , .

Both work in the Expressions preview.

image

By deleting the newline.. it works.

Steps to reproduce the issue

  1. Add a html widget in a form.
  2. Write this expression in the expression editor than add it by clicking the + sign concat('a', 'b')
  3. ab is not shown
  4. If you add the same expression without the newline it works

Versions

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

QGIS version | 3.22.4-Białowieża | QGIS code revision | 3f4577ce6e -- | -- | -- | -- Qt version | 5.15.2 Python version | 3.9.2 GDAL/OGR version | 3.4.1 PROJ version | 7.2.1 EPSG Registry database version | v10.008 (2020-12-16) GEOS version | 3.10.2-CAPI-1.16.0 SQLite version | 3.34.1 PDAL version | 2.2.0 PostgreSQL client version | 14.2 (Debian 14.2-1.pgdg110+1) SpatiaLite version | 5.0.1 QWT version | 6.1.4 QScintilla2 version | 2.11.6 OS version | Debian GNU/Linux 11 (bullseye)   |   |   |   Active Python plugins pluginbuilder3 | 3.2.1 slyr_community | 4.0.1 Discovery | 2.5.7 mask | 1.10.1 project_export_inspire | 1.0.0 pg_history_viewer | 2.2 QNEAT3 | 1.0.4 LAStools | 1.4 qgis_resource_sharing | 0.16.0 water_topology_plugin | 0.1 water_analytics | 0.1 QGIS_Dashboard-master | 0.1 plugin_reloader | 0.9.1 qtibia_docs_py3 | 0.1 scriptrunner3 | 3.0.5 QuickWKT | 3.1 searchlayers | 3.0.5 trackable_project_files | v1.2.2 db_manager | 0.1.20 sagaprovider | 2.12.99 processing | 2.12.99 grassprovider | 2.12.99 QGIS version 3.22.4-Białowieża QGIS code revision [3f4577ce6e](https://github.com/qgis/QGIS/commit/3f4577ce6e) Qt version 5.15.2 Python version 3.9.2 GDAL/OGR version 3.4.1 PROJ version 7.2.1 EPSG Registry database version v10.008 (2020-12-16) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.34.1 PDAL version 2.2.0 PostgreSQL client version 14.2 (Debian 14.2-1.pgdg110+1) SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Debian GNU/Linux 11 (bullseye) Active Python plugins processing 2.12.99 grassprovider 2.12.99 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [X] I tried with a new QGIS profile ### Additional context _No response_
uclaros commented 1 year ago

Fixed in #49876