Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
228274a9
Commit
228274a9
authored
9 years ago
by
nightfox
Browse files
Options
Downloads
Patches
Plain Diff
Made a few fixes for the message header/kludge line colors
parent
5384cb7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/DDMsgReader/DDMsgReader.js
+12
-12
12 additions, 12 deletions
xtrn/DDMsgReader/DDMsgReader.js
with
12 additions
and
12 deletions
xtrn/DDMsgReader/DDMsgReader.js
+
12
−
12
View file @
228274a9
...
...
@@ -166,8 +166,8 @@ if (system.version_num < 31500)
}
// Reader version information
var READER_VERSION = "1.05 Beta
9
";
var READER_DATE = "2015-11-2
8
";
var READER_VERSION = "1.05 Beta
10
";
var READER_DATE = "2015-11-2
9
";
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
...
...
@@ -10621,7 +10621,7 @@ function DigDistMsgReader_GetExtdMsgHdrInfo(pMsgHdr, pKludgeOnly)
// 36 (Reply To extended)
// 37 (Reply To position)
// 38 (Reply To Organization)
hdrFieldLabel = this.colors.hdrLineLabelColor + msgHdrFieldListTypeToLabel(pMsgHdr.field_list[fieldI].type) + "\1n";
hdrFieldLabel =
"\1n" +
this.colors.hdrLineLabelColor + msgHdrFieldListTypeToLabel(pMsgHdr.field_list[fieldI].type) + "\1n";
// New:
var infoLineWrapped = pMsgHdr.field_list[fieldI].data;
var infoLineWrappedArray = lfexpand(infoLineWrapped).split("\r\n");
...
...
@@ -10631,7 +10631,7 @@ function DigDistMsgReader_GetExtdMsgHdrInfo(pMsgHdr, pKludgeOnly)
if (hdrArrayNonBlankLines.numNonBlankLines == 1)
{
var addExtraBlankLineAtEnd = false;
var hdrItem = this.colors.hdrLineValueColor + infoLineWrappedArray[hdrArrayNonBlankLines.firstNonBlankLineIdx] + "\1n";
var hdrItem =
"\1n" +
this.colors.hdrLineValueColor + infoLineWrappedArray[hdrArrayNonBlankLines.firstNonBlankLineIdx] + "\1n";
// If the header field label is different, then add it to the
// header info lines
if ((lastHdrFieldLabel == null) || (hdrFieldLabel != lastHdrFieldLabel))
...
...
@@ -10730,19 +10730,19 @@ function DigDistMsgReader_GetExtdMsgHdrInfo(pMsgHdr, pKludgeOnly)
var propLabel = "";
if (customFieldLabel.length > 0)
propLabel = this.colors.hdrLineLabelColor + customFieldLabel + "\1n";
propLabel =
"\1n" +
this.colors.hdrLineLabelColor + customFieldLabel + "\1n";
else
{
// Remove underscores from the property for the label
propLabel = this.colors.hdrLineLabelColor + prop.replace(/_/g, " ");
propLabel =
"\1n" +
this.colors.hdrLineLabelColor + prop.replace(/_/g, " ");
// New:
// Apply good-looking capitalization to the property label
if ((propLabel == "id") || (propLabel == "ftn tid"))
propLabel = propLabel.toUpperCase() + ":\1n";
propLabel =
"\1n" + this.colors.hdrLineLabelColor +
propLabel.toUpperCase() + ":\1n";
else if (propLabel == "ftn_area")
propLabel = "\1n
\1c
FTN_Area:\1n";
propLabel = "\1n
" + this.colors.hdrLineLabelColor + "
FTN_Area:\1n";
else
propLabel = this.colors.hdrLineLabelColor + capitalizeFirstChar(propLabel) + ":\1n";
propLabel =
"\1n" +
this.colors.hdrLineLabelColor + capitalizeFirstChar(propLabel) + ":\1n";
}
var infoLineWrapped = word_wrap(pMsgHdr[prop], this.msgAreaWidth);
var infoLineWrappedArray = lfexpand(infoLineWrapped).split("\r\n");
...
...
@@ -10751,15 +10751,15 @@ function DigDistMsgReader_GetExtdMsgHdrInfo(pMsgHdr, pKludgeOnly)
{
if (infoLineWrappedArray[lineIdx].length > 0)
{
itemValue = this.colors.hdrLineValueColor + infoLineWrappedArray[lineIdx] + "\1n";
itemValue =
"\1n" +
this.colors.hdrLineValueColor + infoLineWrappedArray[lineIdx] + "\1n";
if (prop == "when_written_time")
{
itemValue = this.colors.hdrLineValueColor + system.timestr(pMsgHdr.when_written_time) + " "
itemValue =
"\1n" +
this.colors.hdrLineValueColor + system.timestr(pMsgHdr.when_written_time) + " "
+ system.zonestr(pMsgHdr.when_written_zone) + "\1n";
}
else if (prop == "when_imported_time")
{
itemValue = this.colors.hdrLineValueColor + system.timestr(pMsgHdr.when_imported_time) + " "
itemValue =
"\1n" +
this.colors.hdrLineValueColor + system.timestr(pMsgHdr.when_imported_time) + " "
+ system.zonestr(pMsgHdr.when_imported_zone) + "\1n";
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment