[GRASS-dev] [GRASS GIS] #2640: newline in attribute table record

#2640: newline in attribute table record
-------------------------------------------------+--------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.1
Component: Database | Version: svn-releasebranch70
Keywords: v.db.select, dbmgr, attribute table | Platform: All
      Cpu: Unspecified |
-------------------------------------------------+--------------------------
I attached a testing shapefile where some of the records have a newline.
Then v.db.select gives:

{{{
cat|LABEL|LABEL2
1|Newline at the end
|xx
2|Newline
In the middle|xx
3|No newline here|xx
}}}

This can't be parsed correctly and as a result Attribute manager fails
with inconsistent number of attributes. It's not just problem of GUI, this
will affect any parsing in a user script for example. One possibility
would be to use different format, for example JSON.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2640&gt;
GRASS GIS <http://grass.osgeo.org>