Subject: | Not ignoring indented paras |
I have some text which I am trying to format with:
autoformat($text,{all=>1,ignore=>'indented'}) but the ignore is not working.
The text:
==================================
To login, please use this account:
Email : joe@soap.com
Password : AV3YKWPR
kind regards
==================================
The result:
==================================
To login, please use this account:
Email : joe.com Password : AV3YKWPR
kind regards
==================================
Additionnally, I tried with this:
sub test {
print "---------------\n$_\n------------\n";
return $_=~/^\s+/;
}
autoformat($text,{all=>1,ignore=>\&test)
The result:
==================================
---------------
To login, please use this account:
------------
To login, please use this account:
Email : joe.com Password : AV3YKWPR
kind regards
==================================
It seems that my sub is only being called for the first para.