Changeset 636


Ignore:
Timestamp:
1999-09-29T08:38:19+12:00 (25 years ago)
Author:
rjmcnab
Message:

fixed a couple of bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.cpp

    r533 r636  
    2828/*
    2929   $Log$
     30   Revision 1.11  1999/09/28 20:38:19  rjmcnab
     31   fixed a couple of bugs
     32
    3033   Revision 1.10  1999/09/07 04:56:55  sjboddie
    3134   added GPL notice
     
    300303      text.push_back (*here);
    301304
    302     here ++;
     305    if (here != end) here ++;
    303306  }
    304307  if (!text.empty()) {
     
    333336  text_t text;
    334337  while (here != end) {
    335     if (*here == '{') {curlycount ++; text.push_back(*here);}
     338
     339    if (*here == '\\') {
     340      here++;
     341      if (here != end) text.push_back(*here);
     342     
     343    } else if (*here == '{') {curlycount ++; text.push_back(*here);}
    336344    else if (*here == '}' && curlycount > 0) {
    337345      curlycount --;
     
    405413      }
    406414      if (*here == '}') break;
    407     }
    408 
    409     else
    410       text.push_back(*here);
     415     
     416    } else text.push_back(*here);
    411417   
    412     here ++;
     418    if (here != end) here ++;
    413419  }
    414420
Note: See TracChangeset for help on using the changeset viewer.