Latex za izvoze: (IZVOZ-103): Resitev za Pdf izvoz vprasalnika ne deluje, ce blok vsebuje znak &
This commit is contained in:
parent
572d4083f9
commit
07044d86ce
@ -259,8 +259,9 @@ class LatexSurveyElement{
|
|||||||
$parents = Cache::srv_branching($spremenljivke['id'], 0)['parent'];
|
$parents = Cache::srv_branching($spremenljivke['id'], 0)['parent'];
|
||||||
//echo "parents: ".$parents."</br>";
|
//echo "parents: ".$parents."</br>";
|
||||||
if($parents){
|
if($parents){
|
||||||
$tex .= $this->displayIf($parents);
|
$tex .= $this->encodeText($this->displayIf($parents));
|
||||||
//echo "blok: ".$this->displayIf($parents)."</br>";
|
//$tex .= $this->displayIf($parents);
|
||||||
|
//echo "blok: ".$this->encodeText($this->displayIf($parents))."</br>";
|
||||||
$tex .= $this->texNewLine;
|
$tex .= $this->texNewLine;
|
||||||
}
|
}
|
||||||
#preuredil kodo, da zadeva deluje tako kot ta stara, ki se nahaja nad tem
|
#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('_','\_ ',$text);
|
||||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||||
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
||||||
$text = str_replace('&','\& ',$text);
|
$text = str_replace('&','\&',$text);
|
||||||
}else{
|
}else{
|
||||||
$text = str_replace('&','\& ',$text);
|
$text = str_replace('&','\&',$text);
|
||||||
}
|
}
|
||||||
$text = str_replace(' ','~',$text);
|
$text = str_replace(' ','~',$text);
|
||||||
//$text = str_replace('<','\textless ',$text);
|
//$text = str_replace('<','\textless ',$text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user