comparison mde/mergetag/read.d @ 3:485c98ecbd91

text.parse: fixed a small bug with char[]'s. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 03 Nov 2007 16:06:06 +0000
parents 78eb491bd642
children 9a990644948c
comparison
equal deleted inserted replaced
2:78eb491bd642 3:485c98ecbd91
340 fbufLocateDataTagChar (pos, true); // find end of data section 340 fbufLocateDataTagChar (pos, true); // find end of data section
341 if (fbuf[pos] != '>') throwMTErr (ERR_DTAG ~ ErrInFile); 341 if (fbuf[pos] != '>') throwMTErr (ERR_DTAG ~ ErrInFile);
342 data = fbuf[pos_s..pos]; 342 data = fbuf[pos_s..pos];
343 343
344 if (!comment && addTag != null) { 344 if (!comment && addTag != null) {
345 TypeInfo* ti_p = type in typeTable; 345 TypeInfo* ti_p = Util.trim(type) in typeTable;
346 if (ti_p) addTag (*ti_p, tagID, data); 346 if (ti_p) addTag (*ti_p, tagID, data);
347 else logger.warn ("Type not supported: " ~ type); 347 else logger.warn ("Type not supported: " ~ type);
348 } else comment = false; // cancel comment status now 348 } else comment = false; // cancel comment status now
349 } 349 }
350 else if (fbuf[pos] == '{') { 350 else if (fbuf[pos] == '{') {