From c66bb76b001f5a50997c41eeb7aab0f148d625bc Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Sat, 6 Mar 2021 00:34:16 +0100 Subject: [PATCH] WIP --- TODO | 1 + htmgem.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index f9b464c..4ebacc3 100644 --- a/TODO +++ b/TODO @@ -21,3 +21,4 @@ * Text localisation * Search all cases where a narrow no-break space would apply * Manage logging (cache refresh, debug) +* Split the main loop in two: one part to decode the text to internal language, the other to make the HTML diff --git a/htmgem.php b/htmgem.php index b64cd4d..dc09be4 100644 --- a/htmgem.php +++ b/htmgem.php @@ -177,7 +177,7 @@ foreach ($fileLines as $line) { echo "
  •  \n"; } else { htmlPrepare($li); - if ($mode_textAttributes xor $mode_textAttributes_temp) addTextAttributes($line); + if ($mode_textAttributes xor $mode_textAttributes_temp) addTextAttributes($li); echo "
  • ".$li."\n"; } } else {