From 579abb33c0272823e1c19a3971190b53bf68ed4a Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Sun, 27 Oct 2024 23:01:41 +0000 Subject: [PATCH] Properly fall back to a world's `rich_text_options_doc` (#4109) Previously, because `default(..., true)` only checks if the left-hand-side is falsey, not just `None`, this always forced options to render in non-rich mode if they were explicitly set to `rich_text_doc = None`. Now it matches the intended and documented behavior, where `None` falls back to the world's `rich_text_options_doc` setting. --- WebHostLib/templates/playerOptions/macros.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WebHostLib/templates/playerOptions/macros.html b/WebHostLib/templates/playerOptions/macros.html index 30a4fc78..64f0f140 100644 --- a/WebHostLib/templates/playerOptions/macros.html +++ b/WebHostLib/templates/playerOptions/macros.html @@ -196,13 +196,14 @@ {% macro OptionTitle(option_name, option) %}