node-editor: Make the help more helpful
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 Jul 2022 11:42:35 +0000 (07:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 Jul 2022 19:46:06 +0000 (15:46 -0400)
I struggled to remember how newlines vs strings work in
this format, so put it in the docs.

demos/node-editor/node-format.md

index cc457f1a20f40725777dbb0d2c9d7965c08a3310..966409027484ec5fcb9c6c2801ebdae8839c0642 100644 (file)
@@ -13,6 +13,8 @@ Each node has its own `<node-name>` and supports a custom set of properties, eac
 
 When serializing and the value of a property equals the default value, this value will not be serialized. Serialization aims to produce an output as small as possible.
 
+To embed newlines in strings, use \A. To break a long string into multiple lines, escape the newline with a \.
+
 # Nodes
 
 ### container