From 4185a30a6e63d25da8bcd205402574ec5e2168cd Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 28 Mar 2020 07:48:27 -0400 Subject: [PATCH] theme_parser: translate hard tabs to spaces --- src/backend/theme_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/theme_parser.py b/src/backend/theme_parser.py index f952f0b9..f3471e3d 100644 --- a/src/backend/theme_parser.py +++ b/src/backend/theme_parser.py @@ -69,6 +69,8 @@ def _process_lines(content: str) -> Generator[str, None, None]: def convert_to_qml(theme_content: str) -> str: """Return valid QML code with imports from QPL content.""" + theme_content = theme_content.replace("\t", " ") + lines = [ "import QtQuick 2.12", 'import "../Base"',