added xml prolog

pull/1/head
Brenda Bell 2016-12-28 10:29:50 -05:00
rodzic 4a3387c5ea
commit a12b68c043
4 zmienionych plików z 7 dodań i 2 usunięć

1
__init__.py 100644
Wyświetl plik

@ -0,0 +1 @@
# intentionally empty

Wyświetl plik

@ -139,7 +139,7 @@ class PCGenerator:
for i in sorted_objects:
diagram.add(i)
return diagram.tostring()
return '<?xml version="1.0" encoding="UTF-8" standalone="no"?>{}'.format(diagram.tostring())
def create_card(self):

1
test/__init__.py 100644
Wyświetl plik

@ -0,0 +1 @@
# intentionally empty

Wyświetl plik

@ -1,4 +1,7 @@
from pcgenerator import PCGenerator
# invocation: python -m test.test
from modules.pcgenerator import PCGenerator
pattern='-x--\n-xxx\nxxx-\n--x-\n'
machine = '12-stitch-br-sr'
#machine = '24-stitch-br-sr'