Merge branch 'master' into release/produkcija
This commit is contained in:
commit
65ac9cc03e
@ -925,6 +925,12 @@ class LatexAnalysisElement{
|
||||
//$text = str_replace('_','\_ ',$text);
|
||||
$text = str_replace('_','\_',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
|
||||
//$text = str_replace('<','\textless ',$text);
|
||||
$text = str_replace('<','\textless',$text);
|
||||
//$text = str_replace('>','\textgreater ',$text);
|
||||
$text = str_replace('>','\textgreater',$text);
|
||||
$text = str_replace(' ',' ',$text);
|
||||
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}else{
|
||||
@ -941,11 +947,11 @@ class LatexAnalysisElement{
|
||||
$text = str_replace('&','\&',$text);
|
||||
}
|
||||
|
||||
//$text = str_replace('<','\textless ',$text);
|
||||
/* //$text = str_replace('<','\textless ',$text);
|
||||
$text = str_replace('<','\textless',$text);
|
||||
//$text = str_replace('>','\textgreater ',$text);
|
||||
$text = str_replace('>','\textgreater',$text);
|
||||
$text = str_replace(' ',' ',$text);
|
||||
$text = str_replace(' ',' ',$text); */
|
||||
//ureditev posebnih karakterjev za Latex - konec
|
||||
|
||||
//ureditev grskih crk
|
||||
|
@ -979,8 +979,10 @@ class LatexSurveyElement{
|
||||
if($numOfUl!=0 && $posLi !== false){ //ce imamo ul in li
|
||||
$text = str_replace('<ul>','\begin{itemize} ', $text);
|
||||
$text = str_replace('<ul','\begin{itemize} ', $text);
|
||||
$text = str_replace('<li>','\item ', $text);
|
||||
$text = str_replace('<li','\item ', $text);
|
||||
/* $text = str_replace('<li>','\item ', $text);
|
||||
$text = str_replace('<li','\item ', $text); */
|
||||
$text = str_replace('<li>','\item \ ', $text);
|
||||
$text = str_replace('<li','\item \ ', $text);
|
||||
$text = str_replace('</ul>','\end{itemize} \ ', $text);
|
||||
}
|
||||
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
||||
@ -998,8 +1000,10 @@ class LatexSurveyElement{
|
||||
//if($numOfUl!=0){
|
||||
if($numOfOl!=0 && $posLi !== false){ //ce imamo ol in li
|
||||
$text = str_replace('<ol>','\begin{enumerate} ', $text);
|
||||
$text = str_replace('<li>','\item ', $text);
|
||||
$text = str_replace('<li','\item ', $text);
|
||||
/* $text = str_replace('<li>','\item ', $text);
|
||||
$text = str_replace('<li','\item ', $text); */
|
||||
$text = str_replace('<li>','\item \ ', $text);
|
||||
$text = str_replace('<li','\item \ ', $text);
|
||||
$text = str_replace('</ol>','\end{enumerate} \ ', $text);
|
||||
}
|
||||
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user