Latex za izvoze: resevanje izpisa praznega html bullet-a li

This commit is contained in:
patrik2020 2021-08-04 13:38:14 +02:00
parent b2c334f2d7
commit 9040877bb1

View File

@ -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>";