Commits

Alexis Metaireau committed 4a20105

Theme fix + remove trailing spaces when parsing rst files for tags.

Comments (0)

Files changed (3)

pelican/bloggenerator.py

                 context[key] = tempdict[key]
     return context
 
-_METADATA = re.compile(':([a-z]+): (.*)', re.M)
+_METADATA = re.compile(':([a-z]+): (.*)\s', re.M)
 _METADATAS_FIELDS = {'tags': lambda x: x.split(', '),
                      'date': lambda x: get_date(x),
                      'category': lambda x: x,
             return datetime.strptime(string, date_format)
         except ValueError:
             pass
-    raise ValueError("%s is not a valid date" % string)
+    raise ValueError("'%s' is not a valid date" % string)
 
 def parse_metadata(string):
     """Return a dict, containing a list of metadata informations, found

samples/themes/notmyidea/css/main.css

 		text-align: left;
 	}
 
+article img{
+   float: right;
+}
+
 /* Headings */
 h2 {font-size: 1.571em}	/* 22px */
 h3 {font-size: 1.429em}	/* 20px */
 
 setup(
     name = "pelican",
-    version = '1.2.2',
+    version = '1.2.3',
     url = 'http://hg.lolnet.org/pelican/',
     author = 'Alexis Metaireau',
     author_email = 'alexis@notmyidea.org',