aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/preprocessors.py
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2010-07-05 22:53:31 -0400
committerToshio Kuratomi <toshio@fedoraproject.org>2010-07-05 22:53:31 -0400
commit2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2 (patch)
tree53024beda5d31143da2a2a0a2e81fa48ca29ba14 /markdown/preprocessors.py
parenta91f766c57d67cebbfc35020f89016ceb4358926 (diff)
downloadmarkdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.tar.gz
markdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.tar.bz2
markdown-2eb00c816c6dc31dbbec6c47f8c7ff70ed0785d2.zip
Rename misc.py to util.py at the request of upstream
Diffstat (limited to 'markdown/preprocessors.py')
-rw-r--r--markdown/preprocessors.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py
index 248e940..3b19953 100644
--- a/markdown/preprocessors.py
+++ b/markdown/preprocessors.py
@@ -9,10 +9,10 @@ complicated.
import re
-import misc
+import util
-HTML_PLACEHOLDER_PREFIX = misc.STX+"wzxhzdk:"
-HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d" + misc.ETX
+HTML_PLACEHOLDER_PREFIX = util.STX+"wzxhzdk:"
+HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d" + util.ETX
class Processor:
def __init__(self, markdown_instance=None):
@@ -173,11 +173,11 @@ class HtmlBlockPreprocessor(Preprocessor):
# keep checking conditions below and maybe just append
if data_index < len(block) \
- and misc.isBlockLevel(left_tag):
+ and util.isBlockLevel(left_tag):
text.insert(0, block[data_index:])
block = block[:data_index]
- if not (misc.isBlockLevel(left_tag) \
+ if not (util.isBlockLevel(left_tag) \
or block[1] in ["!", "?", "@", "%"]):
new_blocks.append(block)
continue
@@ -205,7 +205,7 @@ class HtmlBlockPreprocessor(Preprocessor):
else:
# if is block level tag and is not complete
- if misc.isBlockLevel(left_tag) or left_tag == "--" \
+ if util.isBlockLevel(left_tag) or left_tag == "--" \
and not block.rstrip().endswith(">"):
items.append(block.strip())
in_tag = True