fl_print_format(" The %[%r%r%]", file.stream, context.set.notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, context.set.notable);
fl_print_format(" option takes priority over the %[%r%r%] option when matching the same variable.%r%r", file.stream, context.set.notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, context.set.notable, f_string_eol_s, f_string_eol_s);
- fl_print_format(" The %[%r%r%]", file.stream, context.set.notable, f_console_symbol_long_enable_s, iki_read_long_wrap_s, context.set.notable);
- fl_print_format(" option is ignored when the %[%r%r%] option is matching the same variable.%r%r", file.stream, context.set.notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, context.set.notable, f_string_eol_s, f_string_eol_s);
-
fl_print_format(" The default behavior is to only display content portion of the IKI variable.%r%r", file.stream, f_string_eol_s, f_string_eol_s);
funlockfile(file.stream);
f_print_dynamic_partial(data->buffer, range, data->main->output.to.stream);
+ // The wraps.replace represents the "before", which is a string to prepend.
+ if (wraps.replace.used) {
+ f_print_dynamic(wraps.replace, data->main->output.to.stream);
+ }
+
f_print_dynamic(substitutions.array[at].with, data->main->output.to.stream);
+ // The wraps.replace represents the "after", which is a string to append.
+ if (wraps.with.used) {
+ f_print_dynamic(wraps.with, data->main->output.to.stream);
+ }
+
range.start = iki_data.content.array[index].stop + 1;
range.stop = iki_data.variable.array[index].stop;