ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf/pod.pm
(Generate patch)

Comparing deliantra/server/lib/cf/pod.pm (file contents):
Revision 1.6 by root, Wed Apr 18 17:57:24 2007 UTC vs.
Revision 1.7 by root, Wed Apr 18 18:03:17 2007 UTC

193 Coro::Storable::freeze pom_as_paragraphs +(Pod::POM->new->parse_text ($pod)) 193 Coro::Storable::freeze pom_as_paragraphs +(Pod::POM->new->parse_text ($pod))
194 } 194 }
195 }; 195 };
196} 196}
197 197
198# format as gcfclient-style text
198sub as_text($) { 199sub as_text($) {
199 my ($pars) = @_; 200 my ($pars) = @_;
200 201
201 my $res; 202 my $res;
202 203
212 } 213 }
213 } 214 }
214 215
215 $res =~ s/\n\n+/\n/g; 216 $res =~ s/\n\n+/\n/g;
216 217
218 $res =~ s/<(\/?[\S+])>/[$1]/g;
219 $res =~ s/&lt;/</g;
220 $res =~ s/&gt;/>/g;
221 $res =~ s/&amp;/&/g;
222
217 $res 223 $res
218} 224}
219 225
2201; 2261;
221 227

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines