about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlogin (envs.net) <login@envs.net>2020-02-22 01:53:32 +0000
committerlogin (envs.net) <login@envs.net>2020-02-22 01:53:32 +0000
commit37a0ec67d4ab00a2470c0e7acf6df844a5c5c5cf (patch)
tree7694a5913ca37614a62f1e33a99cdc97fb6db873
parent46f3de4bc1412315092270cfd76dab368564bc4d (diff)
downloadtcoin-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.cpp12
-rw-r--r--tcoin.cpp8
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];
             }