Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #840 (closed enhancement: wontfix)

Opened 16 years ago

Last modified 16 years ago

MapStream and Properties shall support line breaks.

Reported by: keinfarbton Assigned to: kris
Priority: normal Milestone: 1.0
Component: Tango Version: 0.99.4 Frank
Keywords: Cc:

Description

Both tango.io.stream.MapStream and tango.text.Properties do not support line breaks in the value.

Actually the key and the value are trimmed.

I think they should support every valid utf character sequence in both the key and the value without trimming. (escaping line breaks, the equal signs, the hash, the escapement character itself and using no blanks around the equal sign)

Change History

01/31/08 10:50:46 changed by larsivi

Patch?

01/31/08 11:07:30 changed by larsivi

  • milestone set to 1.0.

01/31/08 22:13:58 changed by kris

  • status changed from new to closed.
  • resolution set to wontfix.

Properties is line-based, so a newline in the input is considered to be a line-terminator. It would become somewhat awkward to distinguish between a real eol and a fake one, so I'm not sure it's worth the effort (Properties is supposed to be simple - something more sophisticated should likely be in a different module).

To retain leading or trailing spaces, you might use quoted values instead