mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Clean up minor text formatting, spelling, grammar
This commit is contained in:
parent
4a204f19c9
commit
dd9f55c8bb
1 changed files with 5 additions and 5 deletions
|
|
@ -67,11 +67,11 @@ def strftime(date, date_format):
|
||||||
|
|
||||||
class DateFormatter(object):
|
class DateFormatter(object):
|
||||||
'''A date formatter object used as a jinja filter
|
'''A date formatter object used as a jinja filter
|
||||||
|
|
||||||
Uses the `strftime` implementation and makes sure jinja uses the locale
|
Uses the `strftime` implementation and makes sure jinja uses the locale
|
||||||
defined in LOCALE setting
|
defined in LOCALE setting
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.locale = locale.setlocale(locale.LC_TIME)
|
self.locale = locale.setlocale(locale.LC_TIME)
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ def get_date(string):
|
||||||
|
|
||||||
|
|
||||||
class pelican_open(object):
|
class pelican_open(object):
|
||||||
"""Open a file and return it's content"""
|
"""Open a file and return its content"""
|
||||||
def __init__(self, filename):
|
def __init__(self, filename):
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
|
|
||||||
|
|
@ -236,7 +236,7 @@ def slugify(value):
|
||||||
Normalizes string, converts to lowercase, removes non-alpha characters,
|
Normalizes string, converts to lowercase, removes non-alpha characters,
|
||||||
and converts spaces to hyphens.
|
and converts spaces to hyphens.
|
||||||
|
|
||||||
Took from django sources.
|
Took from Django sources.
|
||||||
"""
|
"""
|
||||||
# TODO Maybe steal again from current Django 1.5dev
|
# TODO Maybe steal again from current Django 1.5dev
|
||||||
value = Markup(value).striptags()
|
value = Markup(value).striptags()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue