Files
community.general/plugins/modules
Jonathan Kamens c7fa11d576 snap: Only treat --- as an info separator when it's preceded by newline (#7046)
* Only treat `---` as an info separator when it's preceded by newline

The code for splitting the output of `snap info` for multiple snaps
can't assume that `---` separates snaps any time it appears in the
output; it needs to treat that as the separator only when it's at the
start of a line. Otherwise it breaks if any snap uses `---` in its
description text, which, e.g., the `bw` snap does as of the date of
this commit.

Fixes #7045.

* Add changelog fragment

* Add a comment explaining why \n is necessary before ---

* Update changelogs/fragments/7046-snap-newline-before-separator.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Jonathan Kamens <jik@jik5.kamens.us>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2023-08-04 07:40:40 +02:00
..
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-11 18:28:34 +12:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-14 07:03:34 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-12 19:37:10 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-14 07:03:34 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-15 12:54:53 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-07-07 07:15:17 +12:00
2023-07-08 10:14:22 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-02-04 17:05:08 +01:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-10 09:28:40 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00