Latex za izvoze: preureditev izpisa ; namesto &, ko je zraven se presledek

This commit is contained in:
patrik2020 2021-02-12 16:24:16 +01:00
parent 8428465c7b
commit e0089f67c6

View File

@ -803,6 +803,8 @@ class LatexSurveyElement{
//echo "Encoding ".$text."</br>";
//echo "vre_id: ".$vre_id."</br>";
//echo "ime spremenljivke ".$this->variableName."</br>";
$text = htmlspecialchars_decode($text); //vse html special chars kot je &amp; spremeni v ustrezne simbole (npr. &amp;=>&)
//resevanje razbirajanja predolgih neprekinjenih besed in URL - spremenljivke za kasnejsi prilagojen izpis
//$numOfWords = str_word_count($text, 0);
@ -911,9 +913,9 @@ class LatexSurveyElement{
$text = str_replace('_','\_ ',$text);
$text = str_replace('~','\textasciitilde{} ',$text);
if(strpos($text, '&amp;')){ //ce je prisotno v besedilu &amp;'
$text = str_replace('&amp;','\& ',$text);
$text = str_replace('&amp;','\& ',$text);
}else{
$text = str_replace('&','\& ',$text);
$text = str_replace('&','\& ',$text);
}
$text = str_replace('&nbsp;','~',$text);
//$text = str_replace('&lt;','\textless ',$text);