crystaltoolkit icon indicating copy to clipboard operation
crystaltoolkit copied to clipboard

Misformatted decimals on non-stoichiometric compositions

Open janosh opened this issue 3 years ago • 2 comments

The website doesn't display non-stoichiometric compositions correctly: Screen Shot 2021-11-19 at 11 57 42

I modified the first period following Mn:

- <sub>4</sub><span>.</span><sub>264</sub>
+ <sub>4.264</sub>

to render correctly. Originally looked like the not-subscripted dot following Co.

cryst.cif.txt

janosh avatar Nov 19 '21 12:11 janosh

Fascinating bug, thank you!

I'll check to see if it's still present, it may have been fixed. The demo app (app.crystaltoolkit.org) will likely be re-directed to the MP app in due course which is updated more frequently.

mkhorton avatar Nov 19 '21 17:11 mkhorton

Update on this issue: I suspect this is probably because we're using a unicode subscript, to avoid having to directly pass HTML tags (which is either unsafe, or a bit more involved in constructing the label). Should be a straight forward to fix however. This is also observed in oxidation state labels.

mkhorton avatar Jul 18 '22 18:07 mkhorton