1from __future__ import print_function, division, absolute_import
2from fontTools.misc.py23 import *
3from . import asciiTable
4
5class table_T_S_I_V_(asciiTable.asciiTable):
6
7	def toXML(self, writer, ttFont):
8		data = tostr(self.data)
9		# removing null bytes. XXX needed??
10		data = data.split('\0')
11		data = strjoin(data)
12		writer.begintag("source")
13		writer.newline()
14		writer.write_noindent(data.replace("\r", "\n"))
15		writer.newline()
16		writer.endtag("source")
17		writer.newline()
18
19	def fromXML(self, name, attrs, content, ttFont):
20		lines = strjoin(content).split("\n")
21		self.data = tobytes("\r".join(lines[1:-1]))
22