Subj : Re: JS Formatting
To : DesotoFireflite
From : Rampage
Date : Mon Jul 18 2022 06:00 am
Re: Re: JS Formatting
By: DesotoFireflite to Tracker1 on Sun Jul 17 2022 09:02:16
readability is a thing...
> msgtxt = "New Member Joined " + system.name + " On " + new Date() + ".\r\n";
> msgtxt += "\r\n Name & Alias..: " + "Alias: " + user.alias + ", " + " Real Name: " + user.name;
> msgtxt += "\r\n Number........: " + user.number;
> msgtxt += "\r\n Handle........: " + user.handle;
> msgtxt += "\r\n Birthdate.....: " + user.birthmonth + "/" + user.birthday + "/" + user.birthyear;
> msgtxt += "\r\n Location......: " + user.location;
> msgtxt += "\r\n IP Address....: " + user.ip_address;
> msgtxt += "\r\n Email Address.: " + user.netmail;
> msgtxt += "\r\n Gender (M/F/X): " + user.gender;
> msgtxt += "\r\n";
while the above is easy to read, i expect the EOL sequences to be at the end of the line... for blank lines, i place the EOL sequence on a line by itself... the above i would write like this...
msgtxt = "New Member Joined " + system.name + " On " + new Date() + ".\r\n";
msgtxt += "\r\n";
msgtxt += " Name & Alias..: " + "Alias: " + user.alias + ", " + " Real Name: " + user.name + "\r\n";
msgtxt += " Number........: " + user.number + "\r\n";
msgtxt += " Handle........: " + user.handle + "\r\n";
msgtxt += " Birthdate.....: " + user.birthmonth + "/" + user.birthday + "/" + user.birthyear + "\r\n";
msgtxt += " Location......: " + user.location + "\r\n";
msgtxt += " IP Address....: " + user.ip_address + "\r\n";
msgtxt += " Email Address.: " + user.netmail + "\r\n";
msgtxt += " Gender (M/F/X): " + user.gender + "\r\n";
msgtxt += "\r\n";
this makes it much easier to see each output line in the code... hopefully wrapping won't fark it up too badly...
)\/(ark
---
� Synchronet � The SouthEast Star Mail HUB - SESTAR