Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"

[project]
name = "sob"
version = "2.2.0"
version = "2.2.1"
description = "A type-enforced framework for serializing and deserializing JSON"
readme = "README.md"
license = "MIT"
Expand Down Expand Up @@ -48,7 +48,7 @@ dependencies = [
"pytest",
"mypy",
"dependence~=1.1",
"gittable~=0.0",
"gittable~=0.2",
]
pre-install-commands = [
"pip install --upgrade pip setuptools",
Expand Down
4 changes: 3 additions & 1 deletion src/sob/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ def split_long_docstring_lines(
indent_: str = " "
if "\t" in docstring:
docstring = docstring.replace("\t", indent_)
lines: list[str] = docstring.split("\n")
lines: list[str] = (
docstring.replace("\r\n", "\n").replace("\r", "\n").split("\n")
)
indentation_length: int = sys.maxsize
for line in filter(None, lines):
matched = re.match(r"^[ ]+", line)
Expand Down
Loading