line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use 5.010; |
3
|
24
|
|
|
24
|
|
10836
|
use Moo::Role; |
|
24
|
|
|
|
|
72
|
|
4
|
24
|
|
|
24
|
|
130
|
|
|
24
|
|
|
|
|
45
|
|
|
24
|
|
|
|
|
172
|
|
5
|
|
|
|
|
|
|
requires 'as_text'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
8
|
|
|
|
|
|
|
our $DATE = '2022-06-23'; # DATE |
9
|
|
|
|
|
|
|
our $DIST = 'Org-Parser'; # DIST |
10
|
|
|
|
|
|
|
our $VERSION = '0.558'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
0
|
1
|
0
|
|
14
|
|
|
|
|
|
|
my ($self) = @_; |
15
|
0
|
|
|
0
|
1
|
0
|
return "" unless $self->children; |
16
|
|
|
|
|
|
|
join "", map {$_->as_text} @{$self->children}; |
17
|
|
|
|
|
|
|
} |
18
|
1
|
|
|
1
|
1
|
2
|
|
19
|
1
|
50
|
|
|
|
7
|
1; |
20
|
0
|
|
|
|
|
|
# ABSTRACT: Role for inline elements |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Org::ElementRole::Inline - Role for inline elements |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This document describes version 0.558 of Org::ElementRole::Inline (from Perl distribution Org-Parser), released on 2022-06-23. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This role is applied to elements that are "inline": elements that can occur |
38
|
|
|
|
|
|
|
inside text and put as a child of L<Org::Element::Text>. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 REQUIRES |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 as_text => str |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Get the "rendered plaintext" representation of element. Most elements would |
45
|
|
|
|
|
|
|
return the same result as C<as_string>, except for elements like |
46
|
|
|
|
|
|
|
L<Org::Element::Link> which will return link description instead of the link |
47
|
|
|
|
|
|
|
itself. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 METHODS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 is_block => bool (0) |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 is_inline => bool (1) |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 children_as_text => str |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 HOMEPAGE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Org-Parser>. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SOURCE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Org-Parser>. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
73
|
|
|
|
|
|
|
GitHub. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
76
|
|
|
|
|
|
|
simply modify the code, then test via: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
% prove -l |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
81
|
|
|
|
|
|
|
system), you can install L<Dist::Zilla>, |
82
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other |
83
|
|
|
|
|
|
|
Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required |
84
|
|
|
|
|
|
|
beyond that are considered a bug and can be reported to me. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This software is copyright (c) 2022, 2021, 2020, 2019, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
91
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 BUGS |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Org-Parser> |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
98
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
99
|
|
|
|
|
|
|
feature. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |