Skip to content

Hjson cpp library renders multi-line strings as single-line with escape newline characters \n in Windows Qt6.9 C++ desktop text editing application #57

@P5music

Description

@P5music

Hello, hjson is very useful for my project.
I also created a Qt6.9 C++ application as an authoring utility for my project that uses the hjson cpp library and includes direct hjson text editing features to some extent.
I compiled it on Windows and on Linux.
Unfortunately the Windows version behaves unexpectedly as to multiline strings: when the hjson text is created out of a json object, the multiline strings are not rendered as
'''
this is
a
multiline
string
'''
as expected
but as
"this is\na\nmultiline\nstring".
This is not usefult at all because I created an app with an internal editor so I need that the text is correctly formatted.
In addition I can say that the json object is created from a hjson text that has those multiline strings in the correct form for sure.
Is it an issue or do I have to set some parameters explicitly for the Windows versions?
Linux version works fine as to multiline rendition.
Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions