Last modified: 2014-11-14 05:11:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74806, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72806 - Undesired spaces added after math expressions
Undesired spaces added after math expressions
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-31 09:18 UTC by Frédéric Wang
Modified: 2014-11-14 05:11 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Frédéric Wang 2014-10-31 09:18:31 UTC
If you type

"<math>\omega</math>,"

then the MathML mode generates

<span><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow class="MJX-TeXAtom-ORD">
  <mstyle displaystyle="true" scriptlevel="0">
    <mi>ω<!-- ω --></mi>
  </mstyle>
</mrow>
</math></span>
<meta class="mwe-math-fallback-image-inline" style="background-image: url('/w/index.php?title=Special:MathShowImage&amp;hash=260b57b4fdee8c5a001c09b555ccd28d&amp;mode=5'); background-repeat: no-repeat; background-size: 100% 100%; vertical-align: -0.167ex; height: 1.167ex; width: 1.5ex;" aria-hidden="true"></span> ,

and an undesired space is added between the math expression and the comma.
Comment 1 physikerwelt 2014-11-02 18:56:35 UTC
It does not seem to be a problem with the math extension. The math extension does not return a space in the end.
It could be a problem with tidy.
Comment 2 physikerwelt 2014-11-02 19:04:19 UTC
I did some furter testing and could find out that the additional space has no effect. I managed to remove the space after the span element but the space in the rendering remains
Comment 3 physikerwelt 2014-11-02 19:07:09 UTC
The additional space is caused by the meta element. So it's a math extension problem
Comment 4 Gerrit Notification Bot 2014-11-03 00:11:17 UTC
Change 170644 had a related patch set uploaded by Physikerwelt:
Remove Undesired spaces after math expressions

https://gerrit.wikimedia.org/r/170644
Comment 5 Gerrit Notification Bot 2014-11-03 08:22:54 UTC
Change 170644 merged by jenkins-bot:
Remove Undesired spaces after math expressions

https://gerrit.wikimedia.org/r/170644
Comment 6 physikerwelt 2014-11-14 05:11:49 UTC
Change got merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links