| Convert-Wiki documentation | Contained in the Convert-Wiki distribution. |
Convert::Wiki::Node::Line - Represents a horizontal line (aka ruler)
use Convert::Wiki::Node::Line; my $hr = Convert::Wiki::Node::Line->new( ); print $hr->as_wiki();
A Convert::Wiki::Node::Line represents a horizontal line (aka ruler).
None by default.
Tels http://bloodgate.com
Copyright (C) 2004 by Tels
This library is free software; you can redistribute it and/or modify it under the terms of the GPL. See the LICENSE file for more details.
| Convert-Wiki documentation | Contained in the Convert-Wiki distribution. |
############################################################################# # (c) by Tels 2004. Part of Convert::Wiki # # represents a horizontal line (or ruler) ############################################################################# package Convert::Wiki::Node::Line; use 5.006001; use strict; use warnings; use Convert::Wiki::Node; use vars qw/$VERSION @ISA/; @ISA = qw/Convert::Wiki::Node/; $VERSION = '0.03'; ############################################################################# sub _init { my ($self,$args) = @_; $self->SUPER::_init($args); $self->{txt} = "----\n\n"; $self; } sub _remove_me { # if we are the first node, or a headline follows us, skip my $self = shift; my $next = $self->next(); if (!defined $self->prev() || (defined $next && $next->type() =~ /head/)) { return 1; } 0; } 1; __END__