Special:MathStatus: Fix unexpected paragraph blocks inside form labels

By using parseAsBlock(), each message was wrapped inside a paragraph
which is then wrapped inside a label, thus preventing the label's own
baseline alignment and whitespace from applying correctly.

Screenshot comparison on task.

Bug: T382375
Change-Id: Ib8a811e8ecb86faf04651f968e188d05711d46c1
This commit is contained in:
Timo Tijhof 2024-12-17 21:30:04 +00:00
parent 8100e30f31
commit ac4795fb52

View file

@ -54,7 +54,7 @@ class MathTestInputForm extends OOUIHTMLForm {
// Messages that can be used here: // Messages that can be used here:
// * math-form-type-tex // * math-form-type-tex
// * math-form-type-chem // * math-form-type-chem
$txt = wfMessage( $optionLabelPrefix[$key] . $value )->parseAsBlock(); $txt = wfMessage( $optionLabelPrefix[$key] . $value )->parse();
$options[$txt] = $value; $options[$txt] = $value;
} }
$form[$key]['options'] = $options; $form[$key]['options'] = $options;