diff options
author | login (envs.net) <login@envs.net> | 2020-02-22 01:53:32 +0000 |
---|---|---|
committer | login (envs.net) <login@envs.net> | 2020-02-22 01:53:32 +0000 |
commit | 37a0ec67d4ab00a2470c0e7acf6df844a5c5c5cf (patch) | |
tree | 7694a5913ca37614a62f1e33a99cdc97fb6db873 | |
parent | 46f3de4bc1412315092270cfd76dab368564bc4d (diff) | |
download | tcoin-37a0ec67d4ab00a2470c0e7acf6df844a5c5c5cf.tar.gz |
Many instances of \u23CE were left unmodified, so those were changed too
I had forgotten to change \u23CE to <new-line> and introduce a check for <vertical-tab> in many many places in tcoin.cpp and pcoin.cpp. I should probably put these things in some kind of function so I don't repeat myself. I'll probably do that in a future commit.
-rw-r--r-- | pcoin.cpp | 12 | ||||
-rw-r--r-- | tcoin.cpp | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/pcoin.cpp b/pcoin.cpp index 7a15fff..c127552 100644 --- a/pcoin.cpp +++ b/pcoin.cpp @@ -799,7 +799,9 @@ int send_message(const char* sender_username, const char* receiver_username, con for(int i=0; message[i]!='\0'; ++i) { if(message[i] == '\n') - fout << "\u23CE "; //return-key symbol, or return symbol, or enter symbol; space for spacing + fout << "<new-line>"; //return-key pressed + else if(message[i] == '\v') + fout << "<vertical-tab>"; //vertical-tab symbol entered else fout << message[i]; } @@ -893,7 +895,9 @@ int send_message(const char* sender_username, const char* receiver_username, con for(int i=0; message[i]!='\0'; ++i) { if(message[i] == '\n') - fout << "\u23CE "; //return-key symbol; space for spacing + fout << "<new-line>"; //return-key pressed + else if(message[i] == '\v') + fout << "<vertical-tab>"; //vertical-tab symbol entered else fout << message[i]; } @@ -980,7 +984,9 @@ int send_message(const char* sender_username, const char* receiver_username, con for(int i=0; message[i]!='\0'; ++i) { if(message[i] == '\n') - fout << "\u23CE "; //return-key symbol, or return symbol, or enter symbol; space for spacing + fout << "<new-line>"; //return-key pressed + else if(message[i] == '\v') + fout << "<vertical-tab>"; //vertical-tab symbol entered else fout << message[i]; } diff --git a/tcoin.cpp b/tcoin.cpp index 393a2bb..b9da553 100644 --- a/tcoin.cpp +++ b/tcoin.cpp @@ -1071,7 +1071,9 @@ int send_message(const char* sender_username, const char* receiver_username, con for(int i=0; message[i]!='\0'; ++i) { if(message[i] == '\n') - fout << "\u23CE "; //return-key symbol, or return symbol, or enter symbol; space for spacing + fout << "<new-line>"; //return-key pressed + else if(message[i] == '\v') + fout << "<vertical-tab>"; //vertical-tab symbol entered else fout << message[i]; } @@ -1165,7 +1167,9 @@ int send_message(const char* sender_username, const char* receiver_username, con for(int i=0; message[i]!='\0'; ++i) { if(message[i] == '\n') - fout << "\u23CE "; //return-key symbol; space for spacing + fout << "<new-line>"; //return-key pressed + else if(message[i] == '\v') + fout << "<vertical-tab>"; //vertical-tab symbol entered else fout << message[i]; } |