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 {