Closed truebluepl closed 1 month ago
To get the proper spacing you must use MathfieldElement.decimalSeparator = ","
It works when I put number in format a,b (integer part, decimal separator and decimal fraction). But not when fraction is surrounded by brackets: a,(b)
This is what I get. Is this different than what you expect?
Here is my example:
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script defer src="https://unpkg.com/mathlive"></script>
</head>
<body>
<math-field></math-field>
<script>
window.addEventListener('DOMContentLoaded', function() {
MathfieldElement.decimalSeparator = ",";
});
</script>
</body>
</html>
Still space after comma.
Ah, ok, this happens when using \left(...\right)
, not when using (...)
. OK, I could temporarily turn off smartfence when in this context.
Fixed with 0382ccd124b0ed1708b58498ca60eb1cec2be836
Description
In Polish language repeating decimal is presented as:
a,(b)
Actual Behavior
Typing integer then decimal separator and decimal part with brackets, causes space between separator and left bracket.
Expected Behavior
There should not be space.