Index: trunk/extensions/Wikidata/WiktionaryZ/Editor.php |
— | — | @@ -739,7 +739,7 @@ |
740 | 740 | $definedMeaningAsLink = definedMeaningAsLink($value); |
741 | 741 | $escapedDefinition = htmlspecialchars($definition); |
742 | 742 | |
743 | | - if ($this->truncate && strlen($definition) >= $this->truncateAt) |
| 743 | + if ($this->truncate && strlen($definition) > $this->truncateAt) |
744 | 744 | $escapedDefinition = '<span title="'. $escapedDefinition .'">'. htmlspecialchars(substr($definition, 0, $this->truncateAt)) . '...</span>'; |
745 | 745 | |
746 | 746 | return $definedMeaningAsLink . ": " . $escapedDefinition; |
— | — | @@ -786,7 +786,7 @@ |
787 | 787 | // global $wgParser, $wgTitle, $wgOut; |
788 | 788 | // $parserOutput = $wgParser->parse($value, $wgTitle, $wgOut->mParserOptions, true, true, $wgOut->mRevisionId); |
789 | 789 | |
790 | | - if (!$this->truncate || strlen($value) < $this->truncateAt) |
| 790 | + if (!$this->truncate || strlen($value) <= $this->truncateAt) |
791 | 791 | return $escapedValue;//$parserOutput->getText(); |
792 | 792 | else |
793 | 793 | return '<span title="'. $escapedValue .'">'. htmlspecialchars(substr($value, 0, $this->truncateAt)) . '...</span>'; |