From 96c314fd8c38e9367ebd55f2be838c3646dd64db Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Sat, 5 Mar 2022 20:15:53 +0100 Subject: [PATCH] Fix: Multiple File-Code Converters --- var/lib/gsl/scripts/gsl__post_makers | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/var/lib/gsl/scripts/gsl__post_makers b/var/lib/gsl/scripts/gsl__post_makers index 9362195..d786ccd 100644 --- a/var/lib/gsl/scripts/gsl__post_makers +++ b/var/lib/gsl/scripts/gsl__post_makers @@ -36,7 +36,14 @@ gsl_ct=0 && gsl__make_titles_div_open gsl_ct=0 && gsl__make_titles_div_close gsl__do_header "make" "$gsl_marker_image" "$gsl_post" gsl__make_paragraphs -gsl__make_fcode + +# From File_Code +gsl_fcode_nbr=`grep "$gsl_mark_fcode" "$gsl_tmp_post" | wc -l` +for fcode in `seq 1 $gsl_fcode_nbr` +do + gsl__make_fcode +done + gsl__check_cites gsl__make_a11y echo -ne "\r\033[2K" @@ -124,7 +131,7 @@ do rm -f "$gsl_file_tmp_code" rm -f "$gsl_file_bcode" -done < <(grep -n "$gsl_mark_fcode" "$gsl_tmp_post") +done < <(grep -n "$gsl_mark_fcode" "$gsl_tmp_post" | head -n 1) }