Open nus-pe-bot opened 1 day ago
We do agree that \n as plain text will not be able to be inputted by therapist. However, the probability of them needing to use such text with no other alternative seems to be very improbable. We expect therapist sessions to be mainly logged mainly in English. For instances where abbreviation is needed, they are almost always used with a forward slash "/" rather than a computing oriented character backslash "\".
--
Bug Description
Inability to use \n values in log entry as it is regarded as a new line character
Steps to Reproduce
addentry
, and have it have a \n in the input. For example:\n: Alex
Expected Behavior
The
\n
should appear.Screenshots
Additional Context
While it is mentioned in the user guide that this is intended behaviour, this might not be optimal for therapists who may use the value \n often in their logs as a way of notation.
The values in the log entry should be escaped.
[original: nus-cs2103-AY2425S1/pe-interim#3421] [original labels: type.FeatureFlaw severity.Low]