theme_parser: translate hard tabs to spaces

This commit is contained in:
miruka 2020-03-28 07:48:27 -04:00
parent 63e57c27f8
commit 4185a30a6e

View File

@ -69,6 +69,8 @@ def _process_lines(content: str) -> Generator[str, None, None]:
def convert_to_qml(theme_content: str) -> str: def convert_to_qml(theme_content: str) -> str:
"""Return valid QML code with imports from QPL content.""" """Return valid QML code with imports from QPL content."""
theme_content = theme_content.replace("\t", " ")
lines = [ lines = [
"import QtQuick 2.12", "import QtQuick 2.12",
'import "../Base"', 'import "../Base"',