Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
purr-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aayush
purr-data
Commits
323f4dac
Commit
323f4dac
authored
Sep 02, 2019
by
Aayush
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated parser for pd_diagram->ascii_art
parent
40142450
Pipeline
#1669
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pd/nw/pd_message_parser.js
pd/nw/pd_message_parser.js
+6
-4
No files found.
pd/nw/pd_message_parser.js
View file @
323f4dac
"
use strict
"
;
function
makeArray
(
h
,
w
,
val
)
{
var
arr
=
[];
...
...
@@ -166,16 +165,19 @@ object_msg_index_info[connection_info[i].start].cell_start_x, object_msg_index_i
}
}
var
ascii_art
=
''
;
var
ascii_art_line
=
''
;
for
(
i
=
0
;
i
<
matrix
.
length
;
i
++
){
ascii_art_line
=
''
;
for
(
j
=
0
;
j
<
matrix
[
i
].
length
;
j
++
)
{
if
(
matrix
[
i
][
j
]
==
"
*
"
){
ascii_art
=
ascii_art
+
"
"
;
ascii_art
_line
=
ascii_art_line
+
"
"
;
}
else
{
ascii_art
=
ascii_art
+
matrix
[
i
][
j
];
ascii_art
_line
=
ascii_art_line
+
matrix
[
i
][
j
];
}
}
ascii_art
=
ascii_art
+
'
\n
'
;
ascii_art_line
=
ascii_art_line
.
trim
();
ascii_art
=
ascii_art
+
ascii_art_line
+
'
\n
'
;
}
return
ascii_art
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment