diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
index dc9756866..dd675953b 100644
--- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php
+++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
@@ -967,6 +967,7 @@ class LatexSurveyElement{
$text = str_replace('
','\begin{itemize} ', $text);
$text = str_replace('','\item ', $text);
+ $text = str_replace('- ','\end{itemize} \ ', $text);
}
//echo "prazno v html: ".strpos($text, '\r')."";
@@ -985,6 +986,7 @@ class LatexSurveyElement{
if($numOfOl!=0 && $posLi !== false){ //ce imamo ol in li
$text = str_replace('
','\begin{enumerate} ', $text);
$text = str_replace('- ','\item ', $text);
+ $text = str_replace('
- ','\end{enumerate} \ ', $text);
}
//echo "prazno v html: ".strpos($text, '\r')."";
@@ -1063,16 +1065,18 @@ class LatexSurveyElement{
//RESEVANJE odstranitve dodatnih style tag-ov po ul, ipd. #######################################################
$findStyleTag = 'style="';
- $findStyleTagEnd = '"';
+ //$findStyleTagEnd = '"';
+ $findStyleTagEnd = '">';
$numOfStyleTags = substr_count($text, $findStyleTag); //stevilo 'style=" ' v tekstu
- //echo "stevilo style: ".$numOfStyleTags." ";
+ //echo "stevilo style: ".$numOfStyleTags." ";
+ //echo $text."";
for($s=0; $s<$numOfStyleTags; $s++){ //za vsako najdeno 'style=" ' besedilo, uredi njeno odstranitev
$posStyleTag = strpos($text, $findStyleTag);
- $posStyleTagEnd = strpos($text, $findStyleTagEnd, $posStyleTag); //strpos(string,find,start) najdi $findStyleTagEnd v $text, isci od $posStyleTag dalje
- $dolzinaOff = $posStyleTagEnd - $posStyleTag + 2;
+ $posStyleTagEnd = strpos($text, $findStyleTagEnd, $posStyleTag); //strpos(string,find,start) najdi $findStyleTagEnd v $text, isci od $posStyleTag dalje
+ $dolzinaOff = $posStyleTagEnd - $posStyleTag + 2;
$text = substr_replace($text, "", $posStyleTag, $dolzinaOff);
- }
+ }
//RESEVANJE odstranitve dodatnih style tag-ov po ul, ipd. - konec #################################################
if($pos === false && $posImg === false) { //v tekstu ni br in img