From: Erik Garrison Date: Mon, 11 Oct 2010 17:53:07 +0000 (-0400) Subject: properly implemented text and comment omission flag X-Git-Url: https://projects.mako.cc/source/wikiq/commitdiff_plain/dab8600205c04124a3e576722e06fcce1afd4408?ds=inline properly implemented text and comment omission flag --- diff --git a/wikiq.c b/wikiq.c index 74fa484..ce61af7 100644 --- a/wikiq.c +++ b/wikiq.c @@ -325,10 +325,14 @@ charhndl(void* vdata, const XML_Char* s, int len) */ case COMMENT: // printf("row: comment is %s\n", t); - data->rev.comment = store(data->rev.comment, t); + if (data->output_type == FULL) { + data->rev.comment = store(data->rev.comment, t); + } break; case TEXT: - data->rev.text = store(data->rev.text, t); + if (data->output_type == FULL) { + data->rev.text = store(data->rev.text, t); + } break; default: break; } @@ -432,7 +436,7 @@ main(int argc, char *argv[]) output_type = SIMPLE; char c; - while ((c = getopt(argc, argv, "hsd")) != -1) + while ((c = getopt(argc, argv, "ht")) != -1) switch (c) { case 'd':