Subject: | Parsing headlines that are links |
Date: | Sun, 16 Nov 2014 21:09:37 -0700 (MST) |
To: | bug-Org-Parser [...] rt.cpan.org |
From: | "Louis B. Moore" <lbmoore [...] hethcote.com> |
If a headline is only a link, for example
* [[file:notes/index.org][Notes]]
if ($_->isa("Org::Element::Headline")) {
my $headtitle = $_->title();
my $text = $headtitle->text();
my $string = $headtitle->as_string();
...
}
$text will be returned as '' and $string as
'[[file:notes/index.org][Notes]]'
I think that $headtitle->text() should probably return 'Notes' and
$headtitle->as_string() should return '[[file:notes/index.org][Notes]]'
Louis