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

Don't display empty lines at start, it is incompatible with many spreadsheets applications

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 221f70c3
No related merge requests found
......@@ -48,11 +48,10 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define=\'amp python:"\\""\'> \n
<tal:block tal:define="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/x-comma-separated-values;; charset=utf-8\');\n
dummy2 python: request.RESPONSE.setHeader(\'Content-disposition\',\'attachment;; filename=%s%s.csv%s\' % (amp,form.title_or_id(),amp) ); ">\n
\n
<tal:block tal:define="groups python: form.get_groups(include_empty=1);\n
<tal:block tal:define=\'amp python:"\\""\'\n
><tal:block tal:define="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/x-comma-separated-values;; charset=utf-8\');\n
dummy2 python: request.RESPONSE.setHeader(\'Content-disposition\',\'attachment;; filename=%s%s.csv%s\' % (amp,form.title_or_id(),amp) ); "\n
><tal:block tal:define="groups python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here);\n
listbox python:form[\'listbox\'];" ><tal:block tal:content="python: listbox.Listbox_exportCsv()" /></tal:block></tal:block>\n
......
......@@ -56,12 +56,10 @@
<tal:block tal:replace="nothing" >\n
form_view is a quick hack to display only the listbox called "listbox"\n
</tal:block>\n
<tal:block tal:define=\'amp python:"\\""\'> \n
<tal:block tal:define="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/x-comma-separated-values;; charset=utf-8\');\n
dummy2 python: request.RESPONSE.setHeader(\'Content-disposition\',\'attachment;; filename=%s%s.csv%s\' % (amp,form.title_or_id(),amp) ); ">\n
\n
<tal:block tal:define="groups python: form.get_groups(include_empty=1);\n
</tal:block><tal:block tal:define=\'amp python:"\\""\'\n
><tal:block tal:define="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/x-comma-separated-values;; charset=utf-8\');\n
dummy2 python: request.RESPONSE.setHeader(\'Content-disposition\',\'attachment;; filename=%s%s.csv%s\' % (amp,form.title_or_id(),amp) ); "\n
><tal:block tal:define="groups python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here);\n
listbox python:form[\'listbox\'];" ><tal:block tal:content="python: listbox.Listbox_exportCsv()" /></tal:block></tal:block>\n
......
2006-03-14 jerome
* Don't display empty lines
2006-02-24 Seb
* Created this business template in order to split erp5_core
\ No newline at end of file
Copyright (c) 2001-2006 Nexedi SARL
\ No newline at end of file
The ERP5 Html style used in order to export data into OpenOffice.org
\ No newline at end of file
The ERP5 CSV style is used in order to export data into OpenOffice.org
\ No newline at end of file
GPL
\ 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