Latex za izvoze: resevanje izpisa praznega html bullet-a li
This commit is contained in:
parent
b2c334f2d7
commit
9040877bb1
@ -979,8 +979,10 @@ class LatexSurveyElement{
|
|||||||
if($numOfUl!=0 && $posLi !== false){ //ce imamo ul in li
|
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('<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);
|
$text = str_replace('</ul>','\end{itemize} \ ', $text);
|
||||||
}
|
}
|
||||||
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
||||||
@ -998,8 +1000,10 @@ class LatexSurveyElement{
|
|||||||
//if($numOfUl!=0){
|
//if($numOfUl!=0){
|
||||||
if($numOfOl!=0 && $posLi !== false){ //ce imamo ol in li
|
if($numOfOl!=0 && $posLi !== false){ //ce imamo ol in li
|
||||||
$text = str_replace('<ol>','\begin{enumerate} ', $text);
|
$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);
|
$text = str_replace('</ol>','\end{enumerate} \ ', $text);
|
||||||
}
|
}
|
||||||
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
//echo "prazno v html: ".strpos($text, '\r')."</br>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user