Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-24 Thread Andreas Neumann
Hi, It would be wonderful if someone could work on preserving formatting and add comment support for the expressions in the QGIS 2.7 dev phase. I can try and help to find some funding, if a dev is interested in implementing this and can provide a quote. Andreas Am 24.09.2014 19:44, schrieb Matt

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-24 Thread Matthias Kuhn
Hi Martin On 24.09.2014 21:42, Martin Dobias wrote: >> I would propose the following: >> >> - QgsExpression::dump() should always recreate the string from the >> data structure >> - save the original expression string and return it with >> QgsExpression::expression() >> - unless the expressi

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-24 Thread Martin Dobias
Hi Matthias On Thu, Sep 25, 2014 at 2:00 AM, Matthias Kuhn wrote: >> This is probably due to the fact that in _some_ cases expressions are >> (unfortunately) not kept in verbatim format as they were input - >> instead they are parsed and later converted back to text, loosing all >> formatting. >

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-24 Thread Matthias Kuhn
Hi Martin On 24.09.2014 19:32, Martin Dobias wrote: > Hi Andreas > > > On Wed, Sep 17, 2014 at 10:56 PM, Andreas Neumann wrote: >> I noticed that line breaks are not preserved. This makes the statement >> much harder to read. >> >> Is there a chance that future QGIS versions could preserve linebr

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-24 Thread Martin Dobias
Hi Andreas On Wed, Sep 17, 2014 at 10:56 PM, Andreas Neumann wrote: > > I noticed that line breaks are not preserved. This makes the statement > much harder to read. > > Is there a chance that future QGIS versions could preserve linebreaks or > is there a problem saving and restoring the line br

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-17 Thread Andreas Neumann
Ah I see. Maybe this is also related: http://hub.qgis.org/issues/8518 and could be fixed similarly. Andreas Am 17.09.2014 19:29, schrieb Régis Haubourg: > +1, > I also noticed that we have troubles with line break html popups. > they seems to be multiplied by 4 on each project save ... really

Re: [Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-17 Thread Régis Haubourg
+1, I also noticed that we have troubles with line break html popups. they seems to be multiplied by 4 on each project save ... really annoying, popups are huuuge! Metadata of layers were affected, but that seems solved:http://hub.qgis.org/issues/8267 Cheers Régis -- View this message in co

[Qgis-developer] Keeping line breaks in QGIS expressions

2014-09-17 Thread Andreas Neumann
Hi, Increasingly I use QGIS expressions. Some of them are quite complex and span numerous lines (e.g. nested CASE statements). I noticed that line breaks are not preserved. This makes the statement much harder to read. Is there a chance that future QGIS versions could preserve linebreaks or is t