Skip to content

Commit 1c5e001

Browse files
authored
fix: prevent mnemonic removal from removing escaped ampersands (#1110)
* fix: revert mnemonic removal logic * refactor: fix newer logic to keep '&&'
1 parent f258578 commit 1c5e001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tagstudio/qt/mnemonics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def remove_mnemonic_marker(label: str) -> str:
1717
if ch == "&":
1818
# escaped ampersand "&&"
1919
if i + 1 < len(label) and label[i + 1] == "&":
20-
result += "&"
20+
result += "&&"
2121
skip = True
2222
# otherwise skip this '&'
2323
continue

0 commit comments

Comments
 (0)