Commit cc57f181 authored by Jérome Perrin's avatar Jérome Perrin

generate style names like "decimal_1" instead of "1_decimal" because the former does not validate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23996 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ded6aa8
......@@ -112,7 +112,7 @@
<tal:block tal:condition="python:field.meta_type==\'FloatField\' or (field.meta_type == \'ProxyField\' and field.getRecursiveTemplateField().meta_type == \'FloatField\')">\n
<tal:block tal:condition="python:field.get_value(\'precision\')>0">\n
<table:table-cell tal:attributes="office:value value;\n
table:style-name python:style_prefix+str(field.get_value(\'precision\'))+\'_decimal\'"\n
table:style-name python: \'decimal_%s_%s\' % (style_prefix , field.get_value(\'precision\'))"\n
office:value-type="float"\n
table:style-name="decimal">\n
<text:p tal:content="python: field.render_pdf(value)" />\n
......
......@@ -152,16 +152,16 @@
<number:number-style style:name="one_decimal">\n
<number:number number:decimal-places="1" number:min-integer-digits="1" number:grouping="true"/>\n
</number:number-style>\n
<style:style style:name="4_decimal" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="four_decimal">\n
<style:style style:name="decimal_4" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="four_decimal">\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border-right=\'0.002cm solid #000000\' />\n
</style:style>\n
<style:style style:name="3_decimal" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="three_decimal">\n
<style:style style:name="decimal_3" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="three_decimal">\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border-right=\'0.002cm solid #000000\' />\n
</style:style>\n
<style:style style:name="2_decimal" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="two_decimal">\n
<style:style style:name="decimal_2" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="two_decimal">\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border-right=\'0.002cm solid #000000\' />\n
</style:style>\n
<style:style style:name="1_decimal" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="one_decimal">\n
<style:style style:name="decimal_1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="one_decimal">\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border-right=\'0.002cm solid #000000\' />\n
</style:style>\n
</office:automatic-styles>\n
......
155
\ No newline at end of file
157
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment