diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-07-03 09:39:15 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-07-03 09:39:15 -0400 |
commit | 5529647cd03468a7d2ae085c86b397d2b2379ab8 (patch) | |
tree | 493a0db21050f9ecd6a6b7d7e7271dccf0201694 /markdown/extensions/meta.py | |
parent | 38436802c10406a2581929cb5707ce90379857e3 (diff) | |
download | markdown-5529647cd03468a7d2ae085c86b397d2b2379ab8.tar.gz markdown-5529647cd03468a7d2ae085c86b397d2b2379ab8.tar.bz2 markdown-5529647cd03468a7d2ae085c86b397d2b2379ab8.zip |
MetaData no longer fails with no newline. Fixes #228.
Diffstat (limited to 'markdown/extensions/meta.py')
-rw-r--r-- | markdown/extensions/meta.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/meta.py b/markdown/extensions/meta.py index aaff436..c4a4b21 100644 --- a/markdown/extensions/meta.py +++ b/markdown/extensions/meta.py @@ -65,7 +65,7 @@ class MetaPreprocessor(Preprocessor): """ Parse Meta-Data and store in Markdown.Meta. """ meta = {} key = None - while 1: + while lines: line = lines.pop(0) if line.strip() == '': break # blank line - done |