diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-11-02 12:40:49 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-11-02 12:40:49 +0100 |
commit | bff7a0d1148026876871ac2b6133823a044614dc (patch) | |
tree | b9416d9eb59a66d329aa9adeb3427d56fbed4b0d /src/ARCodeFile.cpp | |
parent | eb13bce6e7300ffb71f76dec11ce422e05154c28 (diff) |
make linebreaks in text files not weird
Diffstat (limited to 'src/ARCodeFile.cpp')
-rw-r--r-- | src/ARCodeFile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ARCodeFile.cpp b/src/ARCodeFile.cpp index d1f34fb..80833e3 100644 --- a/src/ARCodeFile.cpp +++ b/src/ARCodeFile.cpp @@ -162,20 +162,20 @@ bool ARCodeFile::Save() { ARCodeCat& cat = *it; - if (it != Categories.begin()) FileWriteFormatted(f, "\r\n"); - FileWriteFormatted(f, "CAT %s\r\n\r\n", cat.Name.c_str()); + if (it != Categories.begin()) FileWriteFormatted(f, "\n"); + FileWriteFormatted(f, "CAT %s\n\n", cat.Name.c_str()); for (ARCodeList::iterator jt = cat.Codes.begin(); jt != cat.Codes.end(); jt++) { ARCode& code = *jt; - FileWriteFormatted(f, "CODE %d %s\r\n", code.Enabled, code.Name.c_str()); + FileWriteFormatted(f, "CODE %d %s\n", code.Enabled, code.Name.c_str()); for (size_t i = 0; i < code.Code.size(); i+=2) { - FileWriteFormatted(f, "%08X %08X\r\n", code.Code[i], code.Code[i + 1]); + FileWriteFormatted(f, "%08X %08X\n", code.Code[i], code.Code[i + 1]); } - FileWriteFormatted(f, "\r\n"); + FileWriteFormatted(f, "\n"); } } |