Skip to content

Commit

Permalink
Strip out \x95 from landscape output (#93)
Browse files Browse the repository at this point in the history
Signed-off-by: John Mertic <[email protected]>
  • Loading branch information
jmertic authored Dec 9, 2024
1 parent 0418f62 commit 0bf6d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfx_landscape_tools/landscapeoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def save(self):
ryaml.dump(self.landscape, fileobject, transform=self._removeNulls)

def _removeNulls(self,yamlout):
return yamlout.replace('- item: null','- item:').replace('- category: null','- category:').replace('- subcategory: null','- subcategory:').replace('\u2028',' ')
return yamlout.replace('- item: null','- item:').replace('- category: null','- category:').replace('- subcategory: null','- subcategory:').replace('\u2028',' ').replace('\x95','')

def _str_presenter(self, dumper, data):
if '\n' in data:
Expand Down

0 comments on commit 0bf6d41

Please sign in to comment.