Merge branch 'components-resource-pack-fix' of https://github.com/cadenmiller/PrismLauncher into components-resource-pack-fix

This commit is contained in:
cullvox 2023-09-15 20:41:27 -04:00
commit 07645984b5
6 changed files with 78 additions and 74 deletions

View File

@ -272,7 +272,6 @@ struct TextFormatter {
bool processComponent(const QJsonValue& value, QString& result, const TextFormatter* parentFormat)
{
TextFormatter formatter;
if (parentFormat)
formatter = *parentFormat;

View File

@ -1,4 +1,8 @@
{
"description": [{"text": "Hello, Component!"}],
"description": [
{
"text": "Hello, Component!"
}
],
"expected_output": "Hello, Component!"
}

View File

@ -36,5 +36,6 @@
]
}
],
"expected_output": "<font color=\"blue\"><i>The quick </i></font><font color=\"#873600\"><b><u>brown fox </u></b></font><font color=\"blue\"><i><s>jumped over </s></i></font><font color=\"green\"><b><i><u><s>the lazy dog's back. </s></u></i></b></font><font color=\"black\"><b><i><u>1234567890 </u></i></b></font><font color=\"black\"><b><i><u>How vexingly quick daft zebras jump!</u></i></b></font>"
"expected_output":
"<font color=\"blue\"><i>The quick </i></font><font color=\"#873600\"><b><u>brown fox </u></b></font><font color=\"blue\"><i><s>jumped over </s></i></font><font color=\"green\"><b><i><u><s>the lazy dog's back. </s></u></i></b></font><font color=\"black\"><b><i><u>1234567890 </u></i></b></font><font color=\"black\"><b><i><u>How vexingly quick daft zebras jump!</u></i></b></font>"
}