Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add-submission-indicator-to-scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLL-Avaiga authored Jun 11, 2024
2 parents 55aad5b + 3cd2aba commit bdc9d91
Show file tree
Hide file tree
Showing 2 changed files with 378 additions and 2,111 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
Loading

0 comments on commit bdc9d91

Please sign in to comment.