-#!/usr/bin/python3.0
+#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 1999, 2000 Martin Pool <mbp@humbug.org.au>
tr_re = re.compile(r"^\s*\|\|")
eol_re = re.compile(r"\r?\n")
# For each line, we scan through looking for magic strings, outputting verbatim any intervening text
- for self.line in eol_re.split(str(self.raw.expandtabs(), 'utf-8')):
+ #3.0: for self.line in eol_re.split(str(self.raw.expandtabs(), 'utf-8')):
+ for self.line in eol_re.split(str(self.raw.expandtabs())):
# Skip pragmas
if self.in_header:
if self.line.startswith('#'):
print('</p><p>')
else:
indent = indent_re.match(self.line)
- print(self._indent_to(len(indent.group(0))), end=' ')
+ #3.0: print(self._indent_to(len(indent.group(0))), end=' ')
+ print(self._indent_to(len(indent.group(0))))
print(re.sub(scan_re, self.replace, self.line))
if self.in_pre: print('</pre>')