From 42f8242f07579e0df2e05e2460196cb5e176219e Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 28 Feb 2009 22:00:10 +0330 Subject: [PATCH] cnoor: insert a blank line when no translation --- cnoor.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cnoor.c b/cnoor.c index f049aa1..cbca5e9 100644 --- a/cnoor.c +++ b/cnoor.c @@ -15,11 +15,12 @@ static void ins_sura(struct txtwin *tw, struct quran *quran, quran_aya(quran, buf, LENGTH(buf), start + i); txtwin_append(tw, buf, "quran"); txtwin_append(tw, "\n", NULL); - if (!trans) - continue; - quran_aya(trans, buf, LENGTH(buf), start + i); - txtwin_append(tw, buf, "trans"); - txtwin_append(tw, "\n\n", NULL); + if (trans) { + quran_aya(trans, buf, LENGTH(buf), start + i); + txtwin_append(tw, buf, "trans"); + txtwin_append(tw, "\n", NULL); + } + txtwin_append(tw, "\n", NULL); } } -- 2.11.4.GIT