string new line which is added by libfyaml
This commit is contained in:
parent
dbf5ee84cb
commit
3cc3229792
|
@ -83,7 +83,7 @@ recursive function parse_flow(YAML_flow) result(node)
|
|||
s, & ! start position of dictionary or list
|
||||
d ! position of key: value separator (':')
|
||||
|
||||
flow_string = trim(adjustl(YAML_flow(:)))
|
||||
flow_string = trim(adjustl(YAML_flow))
|
||||
if (len_trim(flow_string) == 0) then
|
||||
node => emptyDict
|
||||
return
|
||||
|
@ -201,7 +201,7 @@ function to_flow(mixed) result(flow)
|
|||
block
|
||||
character(len=strlen,kind=c_char), pointer :: s
|
||||
call c_f_pointer(str_ptr,s)
|
||||
flow = s
|
||||
flow = s(:len(s)-1)
|
||||
end block
|
||||
|
||||
call free_C(str_ptr)
|
||||
|
|
Loading…
Reference in New Issue