Le 20/12/2017 à 16:45, Bernat Brunet a écrit :
2017-12-20 15:55 GMT+01:00 Cédric Krier <cedric.kr...@b2ck.com <mailto:cedric.kr...@b2ck.com>>: 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 (<tryton/> and <data/>) 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 <record/> line with 'model' and 'id' is more readable when not split. But <menu/> 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.