Changeset 14080
- Timestamp:
- 2007-05-18T12:03:36+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HTMLPlug.pm
r14018 r14080 297 297 298 298 print PROD "<!--\n"; 299 while (($curtoclevel > $toclevel) || 300 (!$firstsection && $curtoclevel == $toclevel)) { 299 while ($curtoclevel > 0) { 301 300 $curtoclevel--; 302 301 print PROD "</Section>\n"; 303 302 } 304 print PROD "</Section>\n";305 303 print PROD "-->\n"; 306 304 … … 309 307 return $tmp_filename; 310 308 } 309 310 sub shorten { 311 my $self = shift (@_); 312 my ($text) = @_; 313 314 return "\"$text\"" if (length($text) < 100); 315 316 return "\"" . substr ($text, 0, 50) . "\" ... \"" . 317 substr ($text, length($text)-50) . "\""; 318 } 311 319 312 320 sub convert_tidy_or_oldHDL_file
Note:
See TracChangeset
for help on using the changeset viewer.