Strings with leading or trailing whitespace should be enclosed in quotes or graves to ensure correct representation.
Example Code:
test_obj = Hash.new
test_obj["key"] = " value "
puts CompactData.generate(test_obj)
Current Output:
The code above prints key= value . Decoding this string results in a different object since leading and trailing whitespace is ignored.
Expected Output:
The correct output should use quotes or graves, such as key=" value " or key=` value `