probably not needed
We remove blank spaces while converting to flow YAML.
This commit is contained in:
parent
c347688410
commit
a5c4e7232c
|
@ -54,7 +54,7 @@ recursive function parse_flow(YAML_flow) result(node)
|
|||
myVal
|
||||
character(len=:), allocatable :: &
|
||||
flow_string, &
|
||||
key, line
|
||||
key
|
||||
integer :: &
|
||||
e, & ! end position of dictionary or list
|
||||
s, & ! start position of dictionary or list
|
||||
|
@ -97,9 +97,8 @@ recursive function parse_flow(YAML_flow) result(node)
|
|||
allocate(tScalar::node)
|
||||
select type (node)
|
||||
class is (tScalar)
|
||||
line = trim(adjustl(flow_string))
|
||||
if(line(1:1) == '"') then
|
||||
node = line(2:len(line)-1)
|
||||
if(flow_string(1:1) == '"') then
|
||||
node = trim(adjustl(flow_string(2:len(flow_string)-1)))
|
||||
else
|
||||
node = trim(adjustl(flow_string))
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue