Re: [tryton-dev] 80 cols on XML file

2017-12-21 Thread Raimon Esteve
+1

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/CAN2HbXUfwDuPuFQ61DR46dz9qHH5QK9aQ%2BhZNw2bXHBQEvmEPA%40mail.gmail.com.


Re: [tryton-dev] 80 cols on XML file

2017-12-21 Thread Richard PALO

Le 20/12/2017 à 16:45, Bernat Brunet a écrit :



2017-12-20 15:55 GMT+01:00 Cédric Krier >:

Hi,

I think we should remove the 80 cols limit on XML file.
The rational is that XML file are indented by 4 spaces with at least 2
indentation ( and ) but also XML is quite verbose.
So we reach the limit very quickly and so we add line break which makes
the XML more difficult to read. Also most of the time 'pyson' attribute
already exceed the limit and it can not be break in multiple line.

I think we should be more flexible. For example the  line with
'model' and 'id' is more readable when not split. But  is more
readable if each attribute is on his own line.

So I think the style should be one line with all attributes or one
attribute per line, but not allow mixed.


+1

For me will be better if it's one attribute per line. Because sometimes when 
working with the laptop all in one line wont be good.



I'm starting to tend toward what certain software do in terms of leaving
that sort of formatting to pretty printers like xml_pp, xmlstarlet or what have 
you.

In general, the output file is most certainly not intended to be interpreted 
directly
by a human without some sort of tool or program (read: filter).

In other words, it could simply all go on one line.

cheers,
--
Richard PALO

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/080b7372-020e-6cae-7b27-9c63f98627ca%40netbsd.org.


[tryton-dev] Re: 80 cols on XML file

2017-12-21 Thread Maxime Richez
+1

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/ca655c26-7634-4097-ac72-38e706df3630%40googlegroups.com.