fix mutt header bug

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-07-13 15:35:55 -04:00
parent c034605a69
commit b321269b2e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ rules = [
] ]
class HeaderGrammar(Grammar): class HeaderGrammar(Grammar):
rules = [PatternRule('header', '^[^ ].*:')] + rules rules = [PatternRule('header', '^[^ ][^:]*:')] + rules
class BodyGrammar(Grammar): rules = rules class BodyGrammar(Grammar): rules = rules
class MuttGrammar(Grammar): class MuttGrammar(Grammar):
rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')] rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')]