Skip to content

Commit d4cbf44

Browse files
committed
Remove dead code and eliminate confusion.
1 parent cad1b19 commit d4cbf44

1 file changed

Lines changed: 2 additions & 28 deletions

File tree

textile/functions.py

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -99,32 +99,6 @@ class Textile(object):
9999

100100
note_index = 1
101101

102-
glyph_defaults = {
103-
'quote_single_open': '‘',
104-
'quote_single_close': '’',
105-
'quote_double_open': '“',
106-
'quote_double_close': '”',
107-
'apostrophe': '’',
108-
'prime': '′',
109-
'prime_double': '″',
110-
'ellipsis': '…',
111-
'ampersand': '&',
112-
'emdash': '—',
113-
'endash': '–',
114-
'dimension': '×',
115-
'trademark': '™',
116-
'registered': '®',
117-
'copyright': '©',
118-
'half': '½',
119-
'quarter': '¼',
120-
'threequarters': '¾',
121-
'degrees': '°',
122-
'plusminus': '±',
123-
'fn_ref_pattern': '<sup%(atts)s>%(marker)s</sup>',
124-
'fn_foot_pattern': '<sup%(atts)s>%(marker)s</sup>',
125-
'nl_ref_pattern': '<sup%(atts)s>%(marker)s</sup>',
126-
}
127-
128102
# We'll be searching for characters that need to be HTML-encoded to produce
129103
# properly valid html.
130104
# These are the defaults that work in most cases. Below, we'll copy this
@@ -938,9 +912,9 @@ def fBlock(self, tag, atts, ext, cite, content):
938912

939913
def formatFootnote(self, marker, atts='', anchor=True):
940914
if anchor:
941-
pattern = self.glyph_defaults['fn_foot_pattern']
915+
pattern = _glyph_defaults['fn_foot_pattern']
942916
else:
943-
pattern = self.glyph_defaults['fn_ref_pattern']
917+
pattern = _glyph_defaults['fn_ref_pattern']
944918
return pattern % {'atts': atts, 'marker': marker}
945919

946920
def footnoteRef(self, text):

0 commit comments

Comments
 (0)