This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Opening settings view rewrites newline characters in config.cson #560
Open
Description
General issue:
I have a few key:value pairs in my config.cson file that have "\n" as the value. If I open Atom's settings view, those values get immediately overwritten with triple quotes surrounding blank lines of indentation.
So for example:
"space-after-opening-brace": "\n"
becomes
"space-after-opening-brace": '''
'''
The issue is recreatable in safe mode, and no errors appear in the dev tools.
Specific details:
If I leave Atom open and edit the config file back to the correct "\n" values, I can toggle back and forth to settings and it will stay correct. However, if I change any settings or enable/disable a package, the config file is overwritten again.
Atom v1.0.0 on OS X 10.9.5
Moved from atom/atom#7569