mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-20 19:32:39 +00:00
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:
parent
8100e30f31
commit
ac4795fb52
|
@ -54,7 +54,7 @@ class MathTestInputForm extends OOUIHTMLForm {
|
|||
// Messages that can be used here:
|
||||
// * math-form-type-tex
|
||||
// * math-form-type-chem
|
||||
$txt = wfMessage( $optionLabelPrefix[$key] . $value )->parseAsBlock();
|
||||
$txt = wfMessage( $optionLabelPrefix[$key] . $value )->parse();
|
||||
$options[$txt] = $value;
|
||||
}
|
||||
$form[$key]['options'] = $options;
|
||||
|
|
Loading…
Reference in a new issue