From 31eb672ad82d035646c752600fc1e26ff1714e74 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Wed, 5 Mar 2025 21:46:26 -0800 Subject: [PATCH] fix: replace underscores from macro source tags with spaces This allows macro source tags that contain underscores and category parentheses to be processed as intended (e.g. booru tags) --- src/tagstudio/qt/qt_driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tagstudio/qt/qt_driver.py b/src/tagstudio/qt/qt_driver.py index e7c5974a..8923c870 100644 --- a/src/tagstudio/qt/qt_driver.py +++ b/src/tagstudio/qt/qt_driver.py @@ -1222,6 +1222,7 @@ class QtDriver(DriverMixin, QObject): for string in result.tag_strings: if not string.strip(): continue + string = string.replace("_", " ") base_and_parent = string.split("(") parent = "" base = base_and_parent[0].strip(" ")