Changeset 3425 for trunk/gsdl/lib


Ignore:
Timestamp:
2002-09-13T15:07:18+12:00 (22 years ago)
Author:
jrm21
Message:

Convert \r and \n to space, otherwise other parts of greenstone might not
behave when encountering an embedded \n...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/cfgread.cpp

    r3417 r3425  
    140140      filein.get(c);
    141141      while (!filein.eof() && (c != quote || old_c == '\\') ) {
     142    /* Turn eol into space, in case other parsing bits expect eol to
     143       also mean end of parsing... */
     144    if (c=='\r' || c=='\n') c=' ';
    142145    curvalue.push_back(c);
    143146    old_c = c;
Note: See TracChangeset for help on using the changeset viewer.