Index: src/manifest.c ================================================================== --- src/manifest.c +++ src/manifest.c @@ -754,11 +754,15 @@ zUuid = 0; }else{ SYNTAX("malformed UUID on T-card"); } defossilize(zName); - if( zName[0]!='-' && zName[0]!='+' && zName[0]!='*' ){ + if( zName[0]=='-' ){ + if( zValue && *zValue ){ + SYNTAX("T-card -name with value"); + } + }else if( zName[0]!='+' && zName[0]!='*' ){ SYNTAX("T-card name does not begin with '-', '+', or '*'"); } if( validate16(&zName[1], strlen(&zName[1])) ){ /* Do not allow tags whose names look like UUIDs */ SYNTAX("T-card name looks like a UUID"); @@ -1971,15 +1975,11 @@ if( zValue && *zValue ){ blob_appendf(&comment, " with note \"%h\"", zValue); } blob_append(&comment, ".", 1); }else if( strcmp(zName, "-closed")==0 ){ - blob_append(&comment, " Removed the \"Closed\" mark", -1); - if( zValue && *zValue ){ - blob_appendf(&comment, " with note \"%h\"", zValue); - } - blob_append(&comment, ".", 1); + blob_append(&comment, " Removed the \"Closed\" mark.", -1); }else { if( zName[0]=='-' ){ blob_appendf(&comment, " Cancel \"%h\"", &zName[1]); }else if( zName[0]=='+' ){ blob_appendf(&comment, " Add \"%h\"", &zName[1]);