[GRASS-dev] r.info -e removes line breaks in output

Stefan Blumentrath Stefan.Blumentrath at nina.no
Mon Nov 11 03:00:30 PST 2019


Hi,

I am trying to add some metadata (angles and quality indices) to a Sentinel raster map (https://github.com/OSGeo/grass-addons/pull/53).

That works in principle fine, but unfortunately, the stored meta information is not really reusable, because r.info -e seems to remove all line breaks from the comments. Thus, all meta information is returned in one long string. Would it be possible to maintain line breaks that are in the comments?

In r.info without e-flags line breaks seem to be preserved. However new ones are introduced (I guess depending on the length of the line, but that actually varies quite a bit), so output looks a bit messy...

The issue seems to be somewhere here: https://github.com/OSGeo/grass/blob/master/raster/r.info/main.c#L497
Should I open a ticket?

Cheers
Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191111/405c6884/attachment.html>


More information about the grass-dev mailing list