Correctly reading tabs from text file. [Answered]
I have some Markdown files that are just this
and I'm reading them like this
however the tabbed items are having their tabs stripped from them and the output is just a bunch of strings split by
\r\n
, not sure how I'm supposed to read it correctly to preserve the tabs3 Replies
this is how the output looks, in the first item
- test
should have a tab in front of it![](https://utfs.io/f/9467de6f-e15e-4d82-afa7-3796fe6e1f3c-4pl4mu.png)
for some reason it just replaces
\t
with
, a solution that works for me in this use cause it just to replace all
double whitespaces with \t
, which isn't ideal but it works for this✅ This post has been marked as answered!