Latex za izvoze: preureditev izpisa ; namesto &, ko je zraven se presledek
This commit is contained in:
parent
8428465c7b
commit
e0089f67c6
@ -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 & spremeni v ustrezne simbole (npr. &=>&)
|
||||
|
||||
//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, '&')){ //ce je prisotno v besedilu &'
|
||||
$text = str_replace('&','\& ',$text);
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}else{
|
||||
$text = str_replace('&','\& ',$text);
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}
|
||||
$text = str_replace(' ','~',$text);
|
||||
//$text = str_replace('<','\textless ',$text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user