diff options
-rw-r--r-- | fsm.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |