rcl/golden/fmt/string_preserves_break.test
Ruud van Asseldonk 878eaa4aa4 Use comma as the separator in record notation
I am still ambivalent about this. On the one hand I have a strong sense
that "key = value;" is a statement that needs a terminator. On the other
hand, it makes things more uniform to have only a single separator.

I think I just need to get used to the comma, and then I will not mind
so much. But let's see.
2023-10-21 10:43:44 +02:00

24 lines
895 B
Text

{
name = "Begonia rex",
// The string literal should be preserved verbatim, even though its
// indentation would place other items further to the right.
water_remark = "Keep the soil evenly moist,
water again when it is dry to the touch.",
note = "
The comment in the previous field already forces it to be tall, and the hard
break becomes irrelevant. This string is forced tall because of the hard
break inside it.",
}
# output:
{
name = "Begonia rex",
// The string literal should be preserved verbatim, even though its
// indentation would place other items further to the right.
water_remark = "Keep the soil evenly moist,
water again when it is dry to the touch.",
note = "
The comment in the previous field already forces it to be tall, and the hard
break becomes irrelevant. This string is forced tall because of the hard
break inside it.",
}