Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/libraries/HaXml/bugs/helsen-patch.txt

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


285,288c285,298
<          -- complete the parse straightaway.
<          ( do (tok TokAnyClose +++ tok TokEndClose)
<               trace (e++"[+]") (return ())
<               return ([], Elem e avs []))
---
>            -- complete the parse straightaway.
>            (( do tok TokEndClose
>                  trace (e++"[+]") (return ())
>                  return ([], Elem e avs [])) +++
>             ( do tok TokAnyClose  
>                  trace (e++"[+") (return ())
> 	         n <- bracket (tok TokEndOpen) name (tok TokAnyClose)
>                  trace "]" (return ())
>                  if e == (map toUpper n :: Name) 
> 	           then return ([], Elem e avs [])      
>                    else return (error "no nesting in empty tag")) +++
> 	       do tok TokAnyClose
> 	          trace (e++"[+]") (return ())
>                   return ([], Elem e avs []))

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.