diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
index 4ebe26347..3207f436a 100644
--- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php
+++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php
@@ -791,6 +791,7 @@ class LatexSurveyElement{
$findImgLength = strlen($findImg);
$findUl = '
';
@@ -798,6 +799,7 @@ class LatexSurveyElement{
$pos = strpos($text, $findme);
$posImg = strpos($text, $findImg);
$posUl = strpos($text, $findUl);
+ $posOl = strpos($text, $findOl);
$posLi = strpos($text, $findLi);
$posPar = strpos($text, $findPar);
@@ -880,13 +882,31 @@ 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('
','\end{itemize} ', $text);
+ $text = str_replace('
','\end{itemize} \ ', $text);
}
//echo "prazno v html: ".strpos($text, '\r')."";
//echo "text potem: ".$text."";
######################
}
//ureditev preureditve html kode ul in li v latex itemize - konec
+
+ //ureditev preureditve html kode ol in li v latex enumerate, ki je ostevilcen
+ if($posOl !== false){
+ //echo "text prej: ".$text."";
+ $numOfOl = substr_count($text, $findOl); //stevilo '";
+ ######################
+ //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('
','\end{enumerate} \ ', $text);
+ }
+ //echo "prazno v html: ".strpos($text, '\r')."";
+ //echo "text potem: ".$text."";
+ ######################
+ }
+ //ureditev preureditve html kode ol in li v latex enumerate, ki je ostevilcen - konec
//po ureditvi posebnih karakterjev, dodati del teksta s kodo za sliko, ce je slika prisotna
if($posImg !== false){
diff --git a/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisAndOtherLandscape.cls b/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisAndOtherLandscape.cls
index e8135c37b..9332a595e 100644
--- a/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisAndOtherLandscape.cls
+++ b/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisAndOtherLandscape.cls
@@ -86,4 +86,6 @@
\fancyfoot[l]{www.1ka.si}
\fancyfoot[r]{\thepage}
}
-%vse za glavo in nogo - konec
\ No newline at end of file
+%vse za glavo in nogo - konec
+
+\DeclareUnicodeCharacter{200B}{{\hskip 0pt}}
\ No newline at end of file
diff --git a/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisPortrait.cls b/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisPortrait.cls
index b6bc250e1..ce47fb35d 100644
--- a/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisPortrait.cls
+++ b/admin/survey/export/latexclasses/textemp/latexTemplatePdfAnalysisPortrait.cls
@@ -85,4 +85,5 @@
}
%vse za glavo in nogo - konec
\DeclareUnicodeCharacter{2212}{-}
-\DeclareUnicodeCharacter{030C}{Č}
\ No newline at end of file
+\DeclareUnicodeCharacter{030C}{Č}
+\DeclareUnicodeCharacter{200B}{{\hskip 0pt}}
\ No newline at end of file
diff --git a/admin/survey/export/latexclasses/textemp/latexTemplatePdfSurvey.cls b/admin/survey/export/latexclasses/textemp/latexTemplatePdfSurvey.cls
index 61484a9b7..7c1db7d63 100644
--- a/admin/survey/export/latexclasses/textemp/latexTemplatePdfSurvey.cls
+++ b/admin/survey/export/latexclasses/textemp/latexTemplatePdfSurvey.cls
@@ -14,6 +14,7 @@
\usepackage[export]{adjustbox} % za poravnavo slik
\usepackage{wasysym} % za izris radio button, checkbox
\usepackage[utf8]{inputenc} % za uporabo utf8
+\DeclareUnicodeCharacter{200B}{{\hskip 0pt}}
\usepackage{graphicx} % za prikazovanje slik in ostalih grafik
\usepackage{colortbl} %The package allows rows and columns to be coloured, and even individual cells
\usepackage{fancyhdr} % za ureditev glav in nog