Bug 505449

Summary: Can't input a new line character in Dynamic Text effect
Product: [Applications] kdenlive Reporter: jot.s.gam
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: minor CC: berndmj, r+kde
Priority: NOR Keywords: triaged
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.12.0
Sentry Crash Report:

Description jot.s.gam 2025-06-10 20:16:23 UTC
SUMMARY

When pressing "Enter" or "Shift + Enter" I would expect to input a new line character on at least one of those inputs. I would expect this behaviour as there is UX knowledge from messaging apps like discord (enter sends a message and shift+enter makes a new line)

STEPS TO REPRODUCE
1.  Add clip and dynamic text effect
2.  try to modify the text field by inputting enter or shift+enter

OBSERVED RESULT

nothing

EXPECTED RESULT

make a new line

SOFTWARE/OS VERSIONS
OS: Bazzite 42 (FROM Fedora Kinoite) x86_64
Host: 82JU (Legion 5 15ACH6H)
Kernel: Linux 6.13.9-103.bazzite.fc42.x86_64
Uptime: 1 hour, 4 mins
Packages: 2706 (rpm), 75 (flatpak), 4 (brew)
Shell: bash 5.2.37
Display (BOE08E8): 1920x1080 @ 120 Hz in 16" [Built-in]
DE: KDE Plasma 6.3.4
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Vapor) [Qt], Vapor [GTK2/3]
Icons: breeze-dark [Qt], breeze-dark [GTK3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK3/4]
Cursor: breeze (24px)
CPU: AMD Ryzen 5 5600H (12) @ 4.28 GHz
GPU 1: NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
Memory: 8.68 GiB / 13.49 GiB (64%)

ADDITIONAL INFORMATION

Can't input 25.04.2 into the bug tracker
Comment 1 Maingron 2025-10-18 15:42:32 UTC
I can confirm this on Windows 11 Version 24H2 (OS Build 26100.4770). Can't type a new line, and can't even copy a new line / paragraph from a text document.
Comment 2 Bernd 2025-10-27 14:28:45 UTC
This is a limitation on the Dynamic Text effect/filter that is maintained by the MLT team. I have opened a discussion with them (https://github.com/mltframework/mlt/discussions/1167) but have no idea whether this will be picked up and implemented. Feel free to add your comments to that discussion so that the MLT team sees there is a need for this ;-)
Comment 3 Bernd 2025-10-27 16:14:54 UTC
(In reply to Bernd from comment #2)
> This is a limitation on the Dynamic Text effect/filter that is maintained by
> the MLT team. I have opened a discussion with them
> (https://github.com/mltframework/mlt/discussions/1167) but have no idea
> whether this will be picked up and implemented. Feel free to add your
> comments to that discussion so that the MLT team sees there is a need for
> this ;-)

Here is an update: The way Dynamic Text is implemented in Shotcut (the video editor maintained by the MLT team) is different than in Kdenlive in that the text field is taller and accepts carriage returns.

So, this is a shortcoming in Kdenlive not necessarily a bug. Will get back here with more info.
Comment 4 Jean-Baptiste Mardelle 2025-10-28 07:51:49 UTC
Git commit 1b2c8224ae907d17fb2b3299dedcb823a3dfd2e6 by Jean-Baptiste Mardelle.
Committed on 28/10/2025 at 03:39.
Pushed by mardelle into branch 'master'.

Allow multiple lines in dynamic text effect
Fixes #2078
FIXED-IN: 25.12.0

M  +1    -1    src/assets/view/assetparameterview.cpp
M  +7    -6    src/assets/view/widgets/keywordparamwidget.cpp
M  +21   -14   src/ui/keywordval_ui.ui

https://invent.kde.org/multimedia/kdenlive/-/commit/1b2c8224ae907d17fb2b3299dedcb823a3dfd2e6