We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c3d1e7 commit fbed86eCopy full SHA for fbed86e
src/app/layout/qgslayoutlabelwidget.cpp
@@ -187,6 +187,9 @@ void QgsLayoutLabelWidget::mInsertExpressionButton_clicked()
187
188
QString selText = mTextEdit->textCursor().selectedText();
189
190
+ // html editor replaces newlines with Paragraph Separator characters - see https://issues.qgis.org/issues/19743
191
+ selText = selText.replace( QChar( 0x2029 ), QChar( '\n' ) );
192
+
193
// edit the selected expression if there's one
194
if ( selText.startsWith( QLatin1String( "[%" ) ) && selText.endsWith( QLatin1String( "%]" ) ) )
195
selText = selText.mid( 2, selText.size() - 4 );
0 commit comments