Skip to content

Conversation

@spaceone
Copy link
Contributor

to make them distinguishable from escaped newline strings

Fixes: #49

to make them distinguishable from escaped newline strings
Fixes: josheppinette#49
@josheppinette
Copy link
Owner

josheppinette commented Sep 24, 2025

@spaceone I just needed to get this all printed out to make sense. The new output (mostly the last line) looks good.

main

>>> logging.warning({"msg": "\n "})
at=WARNING msg="\n "
>>> logging.warning({"msg": r"\n "})
at=WARNING msg="\\n "
>>> logging.warning({"msg": "\n"})
at=WARNING msg=\n
>>> logging.warning({"msg": r"\n"})
at=WARNING msg=\n
>>> logging.warning({"msg": r"\n" + "\n"})
at=WARNING msg=\n\n

spaceone:fix/newline-quoting

>>> logging.warning({"msg": "\n "})
at=WARNING msg="\n "
>>> logging.warning({"msg": r"\n "})
at=WARNING msg="\\n "
>>> logging.warning({"msg": "\n"})
at=WARNING msg="\n"
>>> logging.warning({"msg": r"\n"})
at=WARNING msg=\n
>>> logging.warning({"msg": r"\n" + "\n"})
at=WARNING msg="\\n\n"

@josheppinette josheppinette merged commit 0b9592c into josheppinette:main Sep 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

raw \n needs quoting?

2 participants