diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-02-24 18:22:42 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-02-24 18:22:42 -0500 |
commit | d6e2585772d5c1bcd04b9b30f8aa7220d45af486 (patch) | |
tree | 156cfb07805c5a44372a23ae719a05acf4739583 | |
parent | 07a9ee91135fd731adf6c5e10140b4cf1a935944 (diff) | |
parent | cf76cc82b24feb13ec006cb0b560b7b207e60338 (diff) | |
download | markdown-d6e2585772d5c1bcd04b9b30f8aa7220d45af486.tar.gz markdown-d6e2585772d5c1bcd04b9b30f8aa7220d45af486.tar.bz2 markdown-d6e2585772d5c1bcd04b9b30f8aa7220d45af486.zip |
Merge commit 'refs/merge-requests/12' of http://git.gitorious.org/python-markdown/mainline into merge-requests/12
-rw-r--r-- | markdown/extensions/meta.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/markdown/extensions/meta.py b/markdown/extensions/meta.py index e0c2414..8983fc8 100644 --- a/markdown/extensions/meta.py +++ b/markdown/extensions/meta.py @@ -70,7 +70,11 @@ class MetaPreprocessor(markdown.preprocessors.Preprocessor): m1 = META_RE.match(line) if m1: key = m1.group('key').lower().strip() - meta[key] = [m1.group('value').strip()] + value = m1.group('value').strip() + try: + meta[key].append(value) + except KeyError: + meta[key] = [value] else: m2 = META_MORE_RE.match(line) if m2 and key: |