Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
xmarduel committed Apr 9, 2023
1 parent af3626b commit 1670d79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gcodeviewer/widgets/glwidget_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def loadFile(self, fileName):
self.loadData(gcode)

def loadData(self, gcode: str):
data = gcode.split("\r\n")
data = gcode.split("\n")

time = QElapsedTimer()
time.start()
Expand Down
1 change: 0 additions & 1 deletion pycut.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ def cb_save_gcode(self):
filename = "pycut_%s_%s.nc" % (jobname, opname)

gcode = self.job.gcode
gcode = gcode.replace('\r\n', '\n')

if os.path.exists(filename):
k = 1
Expand Down
4 changes: 2 additions & 2 deletions svgviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def augment(self, svg_paths: List[SvgPath]) -> str:
for key, value in shape.attrib.items():
svg_attrs += ' %s="%s"' % (key, value)

all_paths += '<%s %s/>\r\n' % (tag, svg_attrs)
all_paths += '<%s %s/>\n' % (tag, svg_attrs)

for k, svg_path in enumerate(svg_paths):
p_id = svg_path.p_id
Expand All @@ -730,7 +730,7 @@ def augment(self, svg_paths: List[SvgPath]) -> str:
'd_def': d_def
}

all_paths += path + '\r\n'
all_paths += path + '\n'

root = etree.fromstring(self.svg)
root_attrib = root.attrib
Expand Down

0 comments on commit 1670d79

Please sign in to comment.