cli, location: Fix multi-sentence NMEA message output

Multi-sentence NMEA messages were printed as is, that is with
linebreaks, which made mmcli --location-get output look broken.

Split NMEA sentences with linebreaks to separate output list items, so
that they line up correctly.
This commit is contained in:
Teemu Ikonen
2021-08-26 17:02:10 +03:00
committed by Aleksander Morgado
parent 7177eeea99
commit fa19b2b9b1
3 changed files with 39 additions and 1 deletions

View File

@@ -341,6 +341,8 @@ void mmcli_output_string_array (MmcF field,
void mmcli_output_string_array_take (MmcF field,
gchar **strv,
gboolean multiline);
void mmcli_output_string_array_multiline_take (MmcF field,
gchar **strv);
void mmcli_output_string_take_typed (MmcF field,
gchar *value,
const gchar *type);