From da4687be954dd1b6c78ac34fb9b1f715db773220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 00:42:34 +0100 Subject: [PATCH] Debugging --- qsgen2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index bdb3035..6dd2011 100755 --- a/qsgen2 +++ b/qsgen2 @@ -316,14 +316,14 @@ function _pages() { if (${debug}) echo "_pages: Grepping for page_title" page_title=$( echo ${page_content} | head -1 | grep \#title | cut -d= -f2 ) - # Remove the #title line from the buffer. No longer needed. - if (${debug}) echo "_pages: Removing #title line from page_content" - page_content=$( echo ${page_content} | grep -v \#title ) - # HTML'ify the page content if (${debug}) echo "_pages: Running engine on ${pages_in_array}" page_content=$( ${engine} ${page_content} ) + # Remove the #title line from the buffer. No longer needed. + if (${debug}) echo "_pages: Removing #title line from page_content" + page_content=$( echo ${page_content} | grep -v \#title ) + #if (${debug}) echo "_pages: Writing page_content to disk" #echo ${page_content} > ${project_dir}/${pages_in_array%.*}.idx