diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php index b235ffec0..25c21c106 100644 --- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php +++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php @@ -259,8 +259,9 @@ class LatexSurveyElement{ $parents = Cache::srv_branching($spremenljivke['id'], 0)['parent']; //echo "parents: ".$parents."
"; if($parents){ - $tex .= $this->displayIf($parents); - //echo "blok: ".$this->displayIf($parents)."
"; + $tex .= $this->encodeText($this->displayIf($parents)); + //$tex .= $this->displayIf($parents); + //echo "blok: ".$this->encodeText($this->displayIf($parents))."
"; $tex .= $this->texNewLine; } #preuredil kodo, da zadeva deluje tako kot ta stara, ki se nahaja nad tem @@ -934,9 +935,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);