@@ -857,7 +857,8 @@ subroutine json_initialize(me,verbose,compact_reals,&
857
857
character (kind= CDK,len= 10 ) :: e ! ! real exponent digits
858
858
character (kind= CDK,len= 2 ) :: sgn ! ! sign flag: `ss` or `sp`
859
859
character (kind= CDK,len= 2 ) :: rl_edit_desc ! ! `G`, `E`, `EN`, or `ES`
860
- integer (IK) :: istat ! ! `iostat` flag for write statements
860
+ integer (IK) :: istat ! ! `iostat` flag for
861
+ ! ! write statements
861
862
logical (LK) :: sgn_prnt ! ! print sign flag
862
863
863
864
! reset exception to false:
@@ -1102,13 +1103,14 @@ recursive subroutine json_value_clone_func(from,to,parent,previous,next,children
1102
1103
implicit none
1103
1104
1104
1105
type (json_value),pointer :: from ! ! this is the structure to clone
1105
- type (json_value),pointer :: to ! ! the clone is put here
1106
- ! ! (it must not already be associated)
1106
+ type (json_value),pointer :: to ! ! the clone is put here (it
1107
+ ! ! must not already be associated)
1107
1108
type (json_value),pointer ,optional :: parent ! ! to%parent
1108
1109
type (json_value),pointer ,optional :: previous ! ! to%previous
1109
1110
type (json_value),pointer ,optional :: next ! ! to%next
1110
1111
type (json_value),pointer ,optional :: children ! ! to%children
1111
- logical ,optional :: tail ! ! if "to" is the tail of its parent's children
1112
+ logical ,optional :: tail ! ! if "to" is the tail of
1113
+ ! ! its parent's children
1112
1114
1113
1115
nullify(to )
1114
1116
@@ -1467,7 +1469,8 @@ end subroutine wrap_json_info_by_path
1467
1469
!
1468
1470
! ### Example
1469
1471
!
1470
- ! The following example is an array with `var_type=json_integer`, `n_sets=3`, and `set_size=4`
1472
+ ! The following example is an array with `var_type=json_integer`,
1473
+ ! `n_sets=3`, and `set_size=4`
1471
1474
!
1472
1475
! ```json
1473
1476
! {
@@ -1486,9 +1489,12 @@ subroutine json_matrix_info(json,p,is_matrix,var_type,n_sets,set_size,name)
1486
1489
class(json_core),intent (inout ) :: json
1487
1490
type (json_value),pointer :: p ! ! a JSON linked list
1488
1491
logical (LK),intent (out ) :: is_matrix ! ! true if it is a valid matrix
1489
- integer (IK),intent (out ),optional :: var_type ! ! variable type of data in the matrix (if all elements have the same type)
1490
- integer (IK),intent (out ),optional :: n_sets ! ! number of data sets (i.e., matrix rows if using row-major order)
1491
- integer (IK),intent (out ),optional :: set_size ! ! size of each data set (i.e., matrix cols if using row-major order)
1492
+ integer (IK),intent (out ),optional :: var_type ! ! variable type of data in the matrix
1493
+ ! ! (if all elements have the same type)
1494
+ integer (IK),intent (out ),optional :: n_sets ! ! number of data sets (i.e., matrix
1495
+ ! ! rows if using row-major order)
1496
+ integer (IK),intent (out ),optional :: set_size ! ! size of each data set (i.e., matrix
1497
+ ! ! cols if using row-major order)
1492
1498
character (kind= CK,len= :),allocatable ,intent (out ),optional :: name ! ! variable name
1493
1499
1494
1500
type (json_value),pointer :: p_row ! ! for getting a set
@@ -6341,12 +6347,8 @@ subroutine json_get_by_path_jsonpath_bracket(json,me,path,p,found,create_it,was_
6341
6347
if (create) created = .false. ! should always exist
6342
6348
end if
6343
6349
6344
- ! keep trailing space or not:
6345
- if (json% trailing_spaces_significant) then
6346
- ilen = len (path)
6347
- else
6348
- ilen = len_trim (path)
6349
- end if
6350
+ ! path length (don't need trailing spaces:)
6351
+ ilen = len_trim (path)
6350
6352
6351
6353
if (ilen> 1 ) then
6352
6354
0 commit comments