diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
index 94003dec6..cf29a212a 100644
--- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php
+++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
@@ -979,8 +979,10 @@ class LatexSurveyElement{
if($numOfUl!=0 && $posLi !== false){ //ce imamo ul in li
$text = str_replace('
','\begin{itemize} ', $text);
$text = str_replace('','\item ', $text);
- $text = str_replace('- ','\item ', $text);
+ $text = str_replace('
- ','\item \ ', $text);
+ $text = str_replace('
- ','\end{itemize} \ ', $text);
}
//echo "prazno v html: ".strpos($text, '\r')."";
@@ -998,8 +1000,10 @@ class LatexSurveyElement{
//if($numOfUl!=0){
if($numOfOl!=0 && $posLi !== false){ //ce imamo ol in li
$text = str_replace('
','\begin{enumerate} ', $text);
- $text = str_replace('- ','\item ', $text);
- $text = str_replace('
- ','\item ', $text);
+ $text = str_replace('
- ','\item \ ', $text);
+ $text = str_replace('
- ','\end{enumerate} \ ', $text);
}
//echo "prazno v html: ".strpos($text, '\r')."";