Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:Avaiga/taipy into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Lelaquais committed Jun 11, 2024
2 parents a66ca9d + e727905 commit 3cd2aba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions taipy/gui/_renderers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,8 @@ def __parse_file_content(self, content):
self._filepath = content

def __sanitize_content(self, content: str) -> str:
# replace all CRLF (\r\n) with LF (\n)
text = re.sub(r'\r\n', '\n', content)
# replace all remaining CR (\r) with LF (\n)
text = re.sub(r'\r', '\n', content)
return text
# Replace all CRLF (\r\n) and CR (\r) by LF (\n)
return re.sub(r"\r", "\n", re.sub(r"\r\n", "\n", content))

def set_content(self, content: str) -> None:
if not _is_in_notebook():
Expand Down

0 comments on commit 3cd2aba

Please sign in to comment.