From 27a58a8962a35689f2f1738e05d632979cd3f263 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Mon, 21 Apr 2025 10:22:09 -0400 Subject: [PATCH] Fix scientific notation for vapor pressures [skip ci] --- Web/scripts/CPWeb/SphinxTools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Web/scripts/CPWeb/SphinxTools.py b/Web/scripts/CPWeb/SphinxTools.py index aa19eb55..262d3b30 100644 --- a/Web/scripts/CPWeb/SphinxTools.py +++ b/Web/scripts/CPWeb/SphinxTools.py @@ -20,6 +20,7 @@ Fluid Information .. csv-table:: :header-rows: 1 + :escape: @ :widths: 40, 60 :delim: ; :file: {fluid:s}-info.csv @@ -61,7 +62,6 @@ InChI; {inchi:s} InChIKey; {inchikey:s} SMILES; {smiles:s} ChemSpider ID; {ChemSpider_id:s} -2D image; .. image:: {twoDurl:s} **Limits**; Maximum temperature [K];{Tmax:s} Maximum pressure [Pa];{pmax:s} @@ -140,8 +140,8 @@ class FluidInfoTableGenerator(object): ''' convert number to nicely formatted string ''' n = str(n) if 'e' in n: - n = n.replace('e', ':math:`\times 10^{') - n += '}`' + l, r = n.split('e') + n = rf' :math:`{l}@\times 10^{{{r}}}`' else: return n return n