Changeset 22437

Show
Ignore:
Timestamp:
19.07.2010 15:36:00 (10 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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;