Make selections ignore \r in input
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 6 Jul 2014 04:04:57 +0000 (07:04 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 8 Jul 2014 13:09:53 +0000 (15:09 +0200)
commit013e8ef66a530c2b6dad4a19d559a6fc9c81ebfb
tree1cba8daf5a92511791cbe061c753bdf748eb2ced
parent4b3f691f3d02ae19957c4e015d7ea6376b69a2aa
Make selections ignore \r in input

Now the selection engine treats \r (as well as various other space
characters) the same as a space.  Added a unit test for this.
There is an extra trailing space in some cases that may be more common
with \r\n than otherwise, but that is a separate, mostly cosmetic
issue.

Fixes #1555

Change-Id: I78dfe8e477133b98a98fecf1fad243262f9b30c8
src/gromacs/selection/scanner.cpp
src/gromacs/selection/scanner.l
src/gromacs/selection/tests/selectioncollection.cpp