nus-cs2113-AY2223S2 / pe-dev-response

0 stars 0 forks source link

Consecutive spaces are removed in questions and answers during card addition #2546

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago
> card add       -a        hello                       world -q hlah adhauidhuiahiagfku      wjaui   ad w 
That's a good question for revision later!
You now have 1 questions in the bank.
> card list
Here is a list of your cards :

    1.  [67d1bdfc-5e47-4cb3-ac3e-4457e162db97]
    Qn: hlah adhauidhuiahiagfku wjaui ad w
    Ans:    hello world

Good job that the spaces at the start and the end of each question and answer are trimmed. But I didn't expect to see, nor do I think it's a good idea, that the spaces between words inside the questions and answers are cut to 1 space as well. Some users might intentionally add a lot of spaces inside for clarity, indentation or whatsoever reason.


[original: nus-cs2113-AY2223S2/pe-interim#2321] [original labels: type.FunctionalityBug severity.High]

JangusRoundstone commented 1 year ago

Team's Response

From the users' perspective, we feel like it is in the users' interest to trim the extra white spaces in the questions and answers so that when the cards are listed, the space taken by the description of each card will not take too much space, and we can present the card information in a more organized manner. However, we do acknowledge that the issue raised has value, but it is not part of how we envision our current version of Inka should behave, thus the team will not acknowledge it as a bug.

Duplicate status (if any):

--