ikrum / potaka

A sentence based easy bangla programming language for kids and beginners.
http://potaka.io
270 stars 60 forks source link

The output function (দেখাও) auto trims the forward spaces #8

Closed Safayar052 closed 8 years ago

Safayar052 commented 8 years ago

দেখাও("কেমন আছ সবাই??"); দেখাও(" কেমন আছ সবাই??");

Both calls return

কেমন আছ সবাই?? কেমন আছ সবাই??

Is it a bug of the potaka.io editor or the potaka.io itself?

ikrum commented 8 years ago

Right now it's trimming the leading space. If it seems not right it will be fixed. Everything here is for user testing. Thanks for your feedback

Safayar052 commented 8 years ago

দেখাও(১ + "." + "____আম," + " " + "জাম"); দেখাও(১ + ".___" + "____আম," + "জাম"); [Here underscores are spaces...] Output: ১. আম, জাম ১. আম,জাম

So, the space between আম and জাম is ok, but other spaces are trimmed. Even after the period, all spaces are gone. This behavior is inconsistent. The stable version should fix this issue.

ikrum commented 8 years ago

Thanks for rising the issue. It will be fixed

ikrum commented 8 years ago

Problem has been solved. :)