From dab8600205c04124a3e576722e06fcce1afd4408 Mon Sep 17 00:00:00 2001 From: Erik Garrison Date: Mon, 11 Oct 2010 13:53:07 -0400 Subject: [PATCH] properly implemented text and comment omission flag --- wikiq.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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': -- 2.39.5