mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Some sections slightly more indented -- get these too!
This commit is contained in:
parent
6006edafae
commit
04db2cd753
@ -88,7 +88,7 @@ if($list_only) {
|
|||||||
|
|
||||||
$search =~ s/\s/./g;
|
$search =~ s/\s/./g;
|
||||||
|
|
||||||
while($text =~ m/^\s{4}(\d+\.[0-9\.]*)/msg) {
|
while($text =~ m/^\s{4,6}(\d+\.[0-9\.]*)/msg) {
|
||||||
$this_section = $1;
|
$this_section = $1;
|
||||||
|
|
||||||
print "----------------------------------\n" if $debug >= 2;
|
print "----------------------------------\n" if $debug >= 2;
|
||||||
@ -96,7 +96,7 @@ while($text =~ m/^\s{4}(\d+\.[0-9\.]*)/msg) {
|
|||||||
|
|
||||||
my $section_text;
|
my $section_text;
|
||||||
|
|
||||||
if($text =~ m/(.*?)^(?=\s{4}\d+\.)/msg) {
|
if($text =~ m/(.*?)^(?=\s{4,6}\d+\.)/msg) {
|
||||||
$section_text = $1;
|
$section_text = $1;
|
||||||
} else {
|
} else {
|
||||||
print "No section text, end of file marker found.\n" if $debug >= 4;
|
print "No section text, end of file marker found.\n" if $debug >= 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user