Changeset 22437 for main


Ignore:
Timestamp:
2010-07-19T15:36:00+12:00 (14 years ago)
Author:
kjdon
Message:

need to check for ex. before testing whether meta = srclink etc, ex.srclink won't match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/formattools.cpp

    r22046 r22437  
    634634            text_tset &metadata, bool &getParents) {
    635635 
     636  // check for ex. which may occur in format statements
     637  if (meta.size()>3 && (substr(meta.begin(), meta.begin()+3) == "ex.")) {
     638    meta = substr (meta.begin()+3, meta.end());
     639  }
    636640  if (meta == "link")
    637641    formatlistptr->command = comLink;
Note: See TracChangeset for help on using the changeset viewer.