]> Kevux Git Server - fll/commitdiff
Bugfix: FSS Extended List Read program should print new line after Object.
authorKevin Day <kevin@kevux.org>
Fri, 16 Jun 2023 02:39:55 +0000 (21:39 -0500)
committerKevin Day <kevin@kevux.org>
Fri, 16 Jun 2023 02:39:55 +0000 (21:39 -0500)
In the case where Object is printed but not Content a new line must be printed.
This is done to be consistent with the other programs, such as FSS Basic List Read.

The 0.7.x and later versions should probably implement something like -L/--line_end to perform this behavior.
In which case the default behavior would be what the code was doing here prior to this commit.

level_3/fss_extended_list_read/c/private-read.c

index 9342805..417355f 100644 (file)
@@ -482,6 +482,10 @@ extern "C" {
         }
         else {
           fss_extended_list_read_print_at_object(main, data, at, delimits_object);
+
+          if (!(data->option & fss_extended_list_read_data_option_content_d)) {
+            f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream);
+          }
         }
 
         funlockfile(main->output.to.stream);