diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php index ad8a55c5f..7e741403b 100644 --- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php +++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php @@ -983,6 +983,24 @@ class LatexSurveyElement{ } //RESEVANJE BESEDILA V CIRILICI - konec + + + //RESEVANJE odstranitve dodatnih style tag-ov po ul, ipd. ####################################################### + $findStyleTag = 'style="'; + $findStyleTagEnd = '">'; + $numOfStyleTags = substr_count($text, $findStyleTag); //stevilo 'style=" ' v tekstu + //echo "stevilo style: ".$numOfStyleTags."
"; + + for($s=0; $s<$numOfStyleTags; $s++){ //za vsako najdeno 'style=" ' besedilo, uredi njeno odstranitev + //$posImg = strpos($text, $findImg); + $posStyleTag = strpos($text, $findStyleTag); + $posStyleTagEnd = strpos($text, $findStyleTagEnd); + $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 $text = preg_replace("/(\R){2,}/", "$1", $text);