summaryrefslogtreecommitdiff
path: root/fsm.py
diff options
context:
space:
mode:
Diffstat (limited to 'fsm.py')
-rw-r--r--fsm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsm.py b/fsm.py
index 901e114..963aa0a 100644
--- a/fsm.py
+++ b/fsm.py
@@ -50,7 +50,7 @@ class Parser(object):
self._blanks += 1
else:
self._blanks = 0
- if line.strip() == '```':
+ if line.startswith('```'):
self._fsm.push_state(self.pre_state)
self._output.write('<pre>\n')
self._offset += 1
@@ -78,7 +78,7 @@ class Parser(object):
def pre_state(self):
line = self._document[self._offset]
- if line.strip() == '```':
+ if line.startswith('```'):
self._fsm.pop_state()
self._output.write('</pre>\n')
self._offset += 1