@@ -32,7 +32,7 @@ sub _build_indent {
3232
3333sub get_rest_trimmed {
3434 my ( $self , $from ) = @_ ;
35- my $rest = substr ( $self -> _trimmed_line_text, $from ) ;
35+ my $rest = substr $self -> _trimmed_line_text, $from ;
3636 $rest =~ s / ^\s *// ;
3737 $rest =~ s /\s *$// ;
3838 return $rest ;
@@ -45,7 +45,7 @@ sub get_line_text {
4545 if ( $indent_to_remove < 0 or $indent_to_remove > $self -> indent ) {
4646 return $self -> _trimmed_line_text;
4747 } else {
48- return substr ( $self -> line_text, $indent_to_remove ) ;
48+ return substr $self -> line_text, $indent_to_remove ;
4949 }
5050}
5151
@@ -57,13 +57,13 @@ sub is_empty {
5757sub startswith {
5858 my ( $self , $prefix ) = @_ ;
5959 return unless defined $self -> _trimmed_line_text;
60- return !index ( $self -> _trimmed_line_text, $prefix ) ;
60+ return !index $self -> _trimmed_line_text, $prefix ;
6161}
6262
6363sub startswith_title_keyword {
6464 my ( $self , $prefix ) = @_ ;
6565 return unless defined $self -> _trimmed_line_text;
66- return !index ( $self -> _trimmed_line_text, $prefix . ' :' ) ;
66+ return !index $self -> _trimmed_line_text, $prefix . ' :' ;
6767}
6868
6969sub _split_table_cells_iterator {
@@ -120,13 +120,12 @@ sub table_cells {
120120 my $cell_indent = length ($cell ) - length ($stripped_cell );
121121 $stripped_cell =~ s /\s +$// ;
122122 $stripped_cell =~ s / (\\\\ |\\\| |\\ n)/ $unescape_map {$1 }/ g ;
123- push (
123+ push
124124 @{$cells },
125125 {
126126 column => $col + $self -> indent + $cell_indent ,
127127 text => $stripped_cell
128- }
129- );
128+ };
130129 }
131130
132131 return $cells ;
@@ -140,8 +139,8 @@ sub tags {
140139
141140 my @tags ;
142141 my @errors ;
143- my @items = split ( / @/ , $items_line ) ;
144- shift ( @items ) ; # Blank first item
142+ my @items = split /@/, $items_line ;
143+ shift @items ; # Blank first item
145144
146145 for my $untrimmed (@items ) {
147146 my $item = $untrimmed ;
0 commit comments