diff --git a/src/osgPlugins/osg/AsciiStreamOperator.h b/src/osgPlugins/osg/AsciiStreamOperator.h index ea4217a73..68a684584 100644 --- a/src/osgPlugins/osg/AsciiStreamOperator.h +++ b/src/osgPlugins/osg/AsciiStreamOperator.h @@ -237,7 +237,7 @@ public: _in->get( ch ); checkStream(); // skip white space - while ( ch==' ' ) + while ( ch==' ' || (ch=='\n') || (ch=='\r')) { _in->get( ch ); checkStream(); }