https://bugs.kde.org/show_bug.cgi?id=504749
Finley Watson <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/sdk/ |https://invent.kde.org/sdk/ |lokalize/-/commit/ee40ecd67 |lokalize/-/commit/c05bb1d91 |e3ba95ab75aac433a81663f958e |4725d894c4a60c5c159375f1e6d |2d6f |94b2 --- Comment #3 from Finley Watson <[email protected]> --- Git commit c05bb1d914725d894c4a60c5c159375f1e6d94b2 by Finley Watson. Committed on 09/07/2025 at 10:23. Pushed by finw into branch 'release/25.08'. Improve HTML tag matching to reduce the false-positive colouring By searching for tags with regex, we can reduce the number of false- positive matches where text in the translation source / target is coloured as though it were a HTML tag when it isn't. Previously, any text with a `<` char in it would be coloured as HTML from that char, now only from the `<` char followed by an alphabetic char, potentially with a `/` char between i.e. matches `<s` in `<strong>` and `</s` in `</strong>` but not something like `< b` or `<= 3`. In my experience this is in line with how web engines parse HTML files. Before: {width=675 height=590} After: {width=681 height=557} Original HTML tag highlighting is not changed: {width=232 height=92} (cherry picked from commit ee40ecd67e3ba95ab75aac433a81663f958e2d6f) M +5 -2 src/syntaxhighlighter.cpp https://invent.kde.org/sdk/lokalize/-/commit/c05bb1d914725d894c4a60c5c159375f1e6d94b2 -- You are receiving this mail because: You are watching all bug changes.
