ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Pod.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Pod.pm (file contents):
Revision 1.11 by root, Mon Aug 14 03:04:18 2006 UTC vs.
Revision 1.15 by root, Tue Sep 12 20:48:45 2006 UTC

3use strict; 3use strict;
4use utf8; 4use utf8;
5 5
6use Storable; 6use Storable;
7 7
8our $VERSION = 1; 8our $VERSION = 1.03;
9 9
10our $goto_document = sub { }; 10our $goto_document = sub { };
11our %wiki; 11our %wiki;
12 12
13my $MA_BEG = "\x{fcd0}"; 13my $MA_BEG = "\x{fcd0}";
43 # TODO: make sure results are unique 43 # TODO: make sure results are unique
44 44
45 grep { is_prefix_of $_, @path } 45 grep { is_prefix_of $_, @path }
46 map @$_, 46 map @$_,
47 $kw eq "*" ? @wiki{sort keys %wiki} 47 $kw eq "*" ? @wiki{sort keys %wiki}
48 : grep $_, $wiki{$kw} 48 : $wiki{$kw} || ()
49} 49}
50 50
51sub full_path_of($) { 51sub full_path_of($) {
52 my ($node) = @_; 52 my ($node) = @_;
53 53
134 $text 134 $text
135} 135}
136 136
137my %as_paragraphs = ( 137my %as_paragraphs = (
138 image => sub { 138 image => sub {
139 my ($par, $path) = @_; 139 my ($par, $path, $flags) = @_;
140 140
141 push @{ $par->{widget} }, new CFPlus::UI::Image path => $path; 141 push @{ $par->{widget} }, new CFPlus::UI::Image path => $path,
142 $flags & 1 ? (max_h => $::FONTSIZE) : ();
142 143
143 "\x{fffc}" 144 "\x{fffc}"
144 }, 145 },
145 link => sub { 146 link => sub {
146 my ($par, $text, $link) = @_; 147 my ($par, $text, $link) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines