if self.space:
parent.string = parent.text.replace("\n", " ").strip()
else:
parent.string = parent.text.replace("\n", "").strip()
// Rmove the mark
del parent["fonduer"]
name = os.path.basename(fp)[: os.path.basename(fp).rfind(".")]
stable_id = self._get_stable_id(name)
After Change
if self.space:
parent.string.replace_with(" ".join(parent.stripped_strings))
else:
parent.string.replace_with("".join(parent.stripped_strings))
// Rmove the mark
del parent["fonduer"]
name = os.path.basename(fp)[: os.path.basename(fp).rfind(".")]