diff --git a/src/sakia/money/quant_zerosum.py b/src/sakia/money/quant_zerosum.py index 9a93e1d8e357a4620c74e9e69844f340e7cdfc64..d14d3e360d0957d2926f3d702d8746e75271f5e4 100644 --- a/src/sakia/money/quant_zerosum.py +++ b/src/sakia/money/quant_zerosum.py @@ -14,23 +14,21 @@ class QuantitativeZSum(BaseReferential): """Q0 = Q - ( M(t-1) / N(t) ) <br > <table> - <tr><td>ZS</td><td>Quantitative value at zero sum</td></tr> + <tr><td>Q0</td><td>Quantitative value at zero sum</td></tr> <tr><td>Q</td><td>Quantitative value</td></tr> <tr><td>M</td><td>Monetary mass</td></tr> <tr><td>N</td><td>Members count</td></tr> <tr><td>t</td><td>Last UD time</td></tr> <tr><td>t-1</td><td>Penultimate UD time</td></tr> - </table>""", + </table>""" ) _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( "QuantitativeZSum", - """Quantitative at zero sum is used to display the difference between - the quantitative value and the average quantitative value. - If it is positive, the value is above the average value, and if it is negative, - the value is under the average value. - """.replace( - "\n", "<br >" - ), + """Quantitative at zero sum is used to display the difference between<br /> + the quantitative value and the average quantitative value.<br /> + If it is positive, the value is above the average value, and if it is negative,<br /> + the value is under the average value.<br /> + """ ) def __init__(self, amount, currency, app, block_number=None): diff --git a/src/sakia/money/quantitative.py b/src/sakia/money/quantitative.py index 5ac8313779eea5a815595587d731abf54c791717..e621cbf46c5d42831fe33abaeae0406abd2961f4 100644 --- a/src/sakia/money/quantitative.py +++ b/src/sakia/money/quantitative.py @@ -15,7 +15,7 @@ class Quantitative(BaseReferential): <table> <tr><td>Q</td><td>Quantitative value</td></tr> </table> - """, + """ ) _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( "Quantitative", "Base referential of the money. Units values are used here." diff --git a/src/sakia/money/relative.py b/src/sakia/money/relative.py index 794957944c065750f2f3f956ff7b51b6db520b8c..f0f2d2a0b351d2df0b18caff172976fe1918626e 100644 --- a/src/sakia/money/relative.py +++ b/src/sakia/money/relative.py @@ -18,19 +18,17 @@ class Relative(BaseReferential): <tr><td>Q</td><td>Quantitative value</td></tr> <tr><td>UD</td><td>Universal Dividend</td></tr> <tr><td>t</td><td>Last UD time</td></tr> - </table>""", + </table>""" ) _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( "Relative", - """Relative referential of the money. - Relative value R is calculated by dividing the quantitative value Q by the last - Universal Dividend UD. - This referential is the most practical one to display prices and accounts. - No money creation or destruction is apparent here and every account tend to + """Relative referential of the money.<br /> + Relative value R is calculated by dividing the quantitative value Q by the last<br /> + Universal Dividend UD.<br /> + This referential is the most practical one to display prices and accounts.<br /> + No money creation or destruction is apparent here and every account tend to<br /> the average. - """.replace( - "\n", "<br >" - ), + """ ) def __init__(self, amount, currency, app, block_number=None): diff --git a/src/sakia/money/relative_zerosum.py b/src/sakia/money/relative_zerosum.py index 7d20268cf9eadc653fc45c27850e2457505f5077..346127a85e94b7757d2b7e386aef52037b27c944 100644 --- a/src/sakia/money/relative_zerosum.py +++ b/src/sakia/money/relative_zerosum.py @@ -20,17 +20,15 @@ class RelativeZSum(BaseReferential): <tr><td>N</td><td>Members count</td></tr> <tr><td>t</td><td>Last UD time</td></tr> <tr><td>t-1</td><td>Penultimate UD time</td></tr> - </table>""", + </table>""" ) _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( "RelativeZSum", - """Relative at zero sum is used to display the difference between - the relative value and the average relative value. - If it is positive, the value is above the average value, and if it is negative, - the value is under the average value. - """.replace( - "\n", "<br >" - ), + """Relative at zero sum is used to display the difference between<br /> + the relative value and the average relative value.<br /> + If it is positive, the value is above the average value, and if it is negative,<br /> + the value is under the average value.<br /> + """ ) def __init__(self, amount, currency, app, block_number=None):