Newlines stripped from processed files
See original GitHub issuenew lines seem to be removed even if i dont change a file, for now i am having to do:
return root.toSource({quote: 'single', trailingComma: true}) + '\n';
Maybe this is an issue with recast
?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
shell - When printing a variable that contains newlines, why is ...
In a somewhat common case, you'd use command substitution to capture a one-line output, say osrev=$(uname -r) . The utilities usually print a ......
Read more >python - How to strip newlines from each line during a file read?
This works fine, but I can't help thinking there's a more efficient way to do this, to strip the newlines during the read...
Read more >Sanitizing files with no trailing newline « \1 - backreference.org
As it happens, certain applications produce text files with the final newline character missing on the last line.
Read more >Read a text file into string and strip newlines in Python
Strip newlines means removing the \n from last of the string. To open a file in python , we use open() method.It returns...
Read more >Line breaks are removed in posts made in plain text format
The information bar message about extra line breaks does not appear, either in the Preview pane or when you read the post. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like this is an issue again in v0.4.0.
Edit: Tested the same script with v0.3.32, newlines are preserved as expected.
Aha, ran into this issue as well. I can confirm that downgrading to v0.3.32 fixes the issue.