IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8298


Ignore:
Timestamp:
Aug 11, 2006, 4:53:36 PM (20 years ago)
Author:
jhoblitt
Message:

fix BOOL output formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r8232 r8298  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-08-08 23:32:23 $
     12*  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-08-12 02:53:36 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    12791279    psStringAppend(&content, "  " #dataformat, item->data.type); \
    12801280    if ( strncmp(item->comment,"",2) ) { \
    1281         psStringAppend(&content, " #%s", item->comment); \
     1281        psStringAppend(&content, " #%s\n", item->comment); \
    12821282    } \
    1283     psStringAppend(&content, " \n");
     1283    psStringAppend(&content, "\n");
    12841284
    12851285    // In this block, the single item is used to build 'content'
     
    13051305        break;
    13061306    case PS_DATA_BOOL:
    1307         psStringAppend (&content, "%s BOOL  ", item->name);
    1308         if ( item->data.B ) {
    1309             psStringAppend(&content, "TRUE");
    1310         } else {
    1311             psStringAppend(&content, "FALSE");
    1312         }
    1313         if ( item->comment != NULL ) {
    1314             psStringAppend(&content, " #%s", item->comment);
    1315         }
    1316         psStringAppend(&content, " \n", item->comment);
     1307        psStringAppend (&content, "%-15s  %-8s", item->name, "BOOL");
     1308        psStringAppend(&content, "  %s", item->data.B ? "T" : "F");
     1309        if (strncmp(item->comment,"",2) ) {
     1310            psStringAppend(&content, " #%s\n", item->comment);
     1311        }
     1312        psStringAppend(&content, "\n");
    13171313        break;
    13181314    case PS_DATA_S8:
Note: See TracChangeset for help on using the changeset viewer.