IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8779


Ignore:
Timestamp:
Sep 7, 2006, 5:46:24 PM (20 years ago)
Author:
jhoblitt
Message:

change formatMetadataItem() formatting:

add a space between the # and the comment
remove the perpetuation # from METADATA blocks

File:
1 edited

Legend:

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

    r8778 r8779  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-09-08 03:42:24 $
     12*  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-09-08 03:46:24 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    13031303                   item->name, #type, item->data.type); \
    13041304    if (item->comment && strncmp(item->comment, "", 2)) { \
    1305         psStringAppend(&content, "  #%s", item->comment); \
     1305        psStringAppend(&content, "  # %s", item->comment); \
    13061306    } \
    13071307    psStringAppend(&content, "\n");
     
    13101310    switch (item->type) {
    13111311    case PS_DATA_METADATA_MULTI: {
    1312             if (item->comment) {
     1312            if (item->comment && strncmp(item->comment, "", 2)) {
    13131313                psStringAppend(&content, "%s MULTI # %s\n", item->name, item->comment);
    13141314            } else {
     
    13321332                        item->name, "BOOL", item->data.B ? "T" : "F");
    13331333        if (item->comment && strncmp(item->comment, "", 2)) {
    1334             psStringAppend(&content, "  #%s", item->comment);
     1334            psStringAppend(&content, "  # %s", item->comment);
    13351335        }
    13361336        psStringAppend(&content, "\n");
     
    13701370                       item->name, "STR", item->data.str);
    13711371        if (item->comment && strncmp(item->comment,"",2)) {
    1372             psStringAppend(&content, "  #%s", item->comment);
     1372            psStringAppend(&content, "  # %s", item->comment);
    13731373        }
    13741374        psStringAppend(&content, " \n");
     
    13871387        }
    13881388        if ( strncmp(item->comment,"",2) ) {
    1389             psStringAppend(&content, "\nEND   #%s\n", item->comment);
     1389            psStringAppend(&content, "\nEND  # %s\n", item->comment);
    13901390        } else {
    13911391            psStringAppend(&content, "\nEND\n");
     
    14151415
    14161416        if (item->comment && strncmp(item->comment,"",2)) {
    1417             psStringAppend(&content, "  #%s", item->comment);
    1418         }
    1419         psStringAppend(&content, " \n");
     1417            psStringAppend(&content, "  # %s", item->comment);
     1418        }
     1419        psStringAppend(&content, "\n");
    14201420        break;
    14211421    case PS_DATA_VECTOR:
     
    14911491            return NULL;
    14921492        }
    1493         if (item->comment && strncmp(item->comment,"",2)) {
    1494             psStringAppend(&content, "  #%s", item->comment);
     1493        if (item->comment && strncmp(item->comment, "", 2)) {
     1494            psStringAppend(&content, "  # %s", item->comment);
    14951495        }
    14961496        psStringAppend(&content, "\n");
Note: See TracChangeset for help on using the changeset viewer.