<div dir="ltr">Hi!<div><br></div><div>I found some unexpected behaviour for erl_scan and I hope someone can shed a light as to if it's supposed to be like that or it's a bug. IMHO the latter applies.</div><div><br></div><div>> erl_scan:string("a. b",{1,1},[return,text]).</div><div>{ok,[{atom,[{line,1},{column,1},{text,"a"}],a},</div><div>     {dot,[{line,1},{column,2},{text,". "}]},</div><div>     {atom,[{line,1},{column,4},{text,"b"}],b}],</div><div>    {1,5}}</div><div><br></div><div>In short, the first newline or whitespace after a dot is included in the textual representation of the token. Why would anyone have that?</div><div><br></div><div>regards,<br></div><div>Vlad</div><div><br></div></div>