Re: [bitbake-devel] [PATCH 2/2] bitbake-setup: write notes for generated build configs

Alexander Kanavin <[email protected]> Mon, 1 Jun 2026 15:30:48 +0200
Newsgroups org.openembedded.lists.bitbake-devel,org.yoctoproject.lists.docs
Message-ID <CANNYZj8+ToTjrpgXMzFfDB5k4Xc637ORzY7LdzW0Kn6fBGs_BA@mail.gmail.com>
On Mon, 1 Jun 2026 at 14:53, Ernest Van Hoecke via
lists.openembedded.org
<[email protected]> wrote:

> Yes, I tested with some newlines explicitly written and this worked fine.
> Since it just comes from a json string and is passed to `f.write()` I
> don't believe any special escaping is necessary, just "\n" is fine.
>
> My understanding is that the Python json library should handle this well
> and converts it to a real newline in the python string.

I need to ask though: how practical and readable is it going to be,
when written into the json? Notes are meant as multiple paragraphs of
text, and it would be good to be able to write them that way, instead
of some specially-formatted single string.

Alex