Skip to content

Commit

Permalink
field/@as-type="markup-line" needs to be classified as markup
Browse files Browse the repository at this point in the history
Otherwise, we would not be able to parse contents like

            <param id="ac-4.4_prm_2">
               <select how-many="one or more">
                  <choice>decrypting the information</choice>
                  <choice>blocking the flow of the encrypted information</choice>
                  <choice>terminating communications sessions attempting to pass encrypted information</choice>
                  <choice>
                     <insert param-id="ac-4.4_prm_3"/>
                  </choice>
               </select>
            </param>

that appears in NIST_SP-800-53_rev5-FINAL_catalog.xml
  • Loading branch information
isimluk committed Oct 6, 2020
1 parent f8cef8a commit 49ea87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaschema/parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (df *DefineField) GetMetaschema() *Metaschema {
}

func (df *DefineField) IsMarkup() bool {
return df.AsType == AsTypeMarkupMultiLine
return df.AsType == AsTypeMarkupMultiLine || df.AsType == AsTypeMarkupLine
}

func (df *DefineField) JsonName() string {
Expand Down

0 comments on commit 49ea87a

Please sign in to comment.