From 5384f308acde9f0ec30545ff6f0a493e6e4a9123 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/ts_qt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tagstudio/qt/ts_qt.py b/src/tagstudio/qt/ts_qt.py index 87b0fc49..80ece066 100644 --- a/src/tagstudio/qt/ts_qt.py +++ b/src/tagstudio/qt/ts_qt.py @@ -1146,6 +1146,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(" ")