Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KADMOS
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LR-FPP-MDO
KADMOS
Commits
32cce3b3
Commit
32cce3b3
authored
7 years ago
by
Imco van Gent
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix for use of special characters in names with create_dsm() function.
Former-commit-id: 55db533a63b2b7c58d718b869a7fe50d6f3bd8b5
parent
f467c024
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#192736
canceled
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kadmos/external/XDSM_writer/XDSM.py
+4
-2
4 additions, 2 deletions
kadmos/external/XDSM_writer/XDSM.py
with
4 additions
and
2 deletions
kadmos/external/XDSM_writer/XDSM.py
+
4
−
2
View file @
32cce3b3
...
...
@@ -53,7 +53,8 @@ class XDSM(object):
"""
if
name
[
0
:
5
]
!=
'
EMPTY
'
:
name
=
unicodedata
.
normalize
(
'
NFKD
'
,
name
.
decode
(
'
unicode-escape
'
)).
encode
(
'
hex
'
)
string
=
string
.
encode
(
'
unicode-escape
'
).
replace
(
'
_
'
,
'
\_
'
)
string
=
string
.
encode
(
'
unicode-escape
'
).
replace
(
'
_
'
,
'
\_
'
).
replace
(
'
&
'
,
'
\&
'
).
replace
(
'
%
'
,
'
\%
'
)
\
.
replace
(
'
$
'
,
'
\$
'
).
replace
(
'
#
'
,
'
\#
'
).
replace
(
'
{
'
,
'
\{
'
).
replace
(
'
}
'
,
'
\}
'
)
self
.
inds
[
name
]
=
len
(
self
.
comps
)
self
.
comps
.
append
([
name
,
style
,
string
,
stack
])
...
...
@@ -75,7 +76,8 @@ class XDSM(object):
out
=
unicodedata
.
normalize
(
'
NFKD
'
,
out
.
decode
(
'
unicode-escape
'
)).
encode
(
'
hex
'
)
if
inp
[
0
:
5
]
!=
'
EMPTY
'
:
inp
=
unicodedata
.
normalize
(
'
NFKD
'
,
inp
.
decode
(
'
unicode-escape
'
)).
encode
(
'
hex
'
)
string
=
string
.
encode
(
'
unicode-escape
'
).
replace
(
'
_
'
,
'
\_
'
)
string
=
string
.
encode
(
'
unicode-escape
'
).
replace
(
'
_
'
,
'
\_
'
).
replace
(
'
&
'
,
'
\&
'
).
replace
(
'
%
'
,
'
\%
'
)
\
.
replace
(
'
$
'
,
'
\$
'
).
replace
(
'
#
'
,
'
\#
'
).
replace
(
'
{
'
,
'
\{
'
).
replace
(
'
}
'
,
'
\}
'
)
self
.
deps
.
append
([
out
,
inp
,
style
,
string
,
stack
])
def
addChain
(
self
,
chain_list
):
...
...
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