opentofu/internal/command/format
Martin Atkins 6dec25c1fb command/format: FilterControlChars is now ReplaceControlChars
Since this is replacing C0 control characters with other control characters
rather than just removing them completely, "replace" is probably the more
intuitive name for this function.

This also removes the preallocation of the output buffer in the case where
control characters were present in the input, letting the strings.Builder
implementation manage the buffer growth automatically itself.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-10 09:49:35 -08:00
..
control_chars.go command/format: FilterControlChars is now ReplaceControlChars 2025-11-10 09:49:35 -08:00
control_chars_test.go command/format: FilterControlChars is now ReplaceControlChars 2025-11-10 09:49:35 -08:00
diagnostic.go command/format: FilterControlChars is now ReplaceControlChars 2025-11-10 09:49:35 -08:00
diagnostic_test.go command/format: Filter C0 control characters in diagnostic output 2025-11-10 09:49:35 -08:00
format.go refactor: break the dependency between jsonformat/computed/renderers and command/format 2025-07-14 17:25:24 -03:00
object_id.go Address review comments 2025-09-10 07:45:23 -04:00
object_id_test.go Ephemeral todos handling (#3177) 2025-09-10 07:45:23 -04:00
trivia.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00