string new line which is added by libfyaml

This commit is contained in:
Martin Diehl 2022-04-16 16:19:33 +02:00
parent dbf5ee84cb
commit 3cc3229792
1 changed files with 2 additions and 2 deletions

View File

@ -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)