QScintilla/Exporters/ExporterTEX.py

branch
5_2_x
changeset 1591
9de9ce0ae4fc
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
equal deleted inserted replaced
1589:9f0fef4a4fbe 1591:9de9ce0ae4fc
204 while pos < lengthDoc: 204 while pos < lengthDoc:
205 ch = self.editor.byteAt(pos) 205 ch = self.editor.byteAt(pos)
206 style = self.editor.styleAt(pos) 206 style = self.editor.styleAt(pos)
207 if style != styleCurrent: 207 if style != styleCurrent:
208 # new style 208 # new style
209 f.write("}\n\\eric{0}{{".format(self.__texStyle(style))) 209 f.write("}}\n\\eric{0}{{".format(self.__texStyle(style)))
210 styleCurrent = style 210 styleCurrent = style
211 211
212 if ch == b'\t': 212 if ch == b'\t':
213 ts = tabSize - (lineIdx % tabSize) 213 ts = tabSize - (lineIdx % tabSize)
214 lineIdx += ts - 1 214 lineIdx += ts - 1

eric ide

mercurial