Added xml prolog print function.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 4s

This commit is contained in:
Willem Cazander 2024-07-18 12:29:17 +02:00
parent c965e2dbfa
commit 669c687b8b

View file

@ -12,6 +12,13 @@ MB_MAKE_XML_CDATA_END := ]]>
$(call mb-make-call,mb-doc-variable-rock,MB_MAKE_XML_CDATA_END,Expanded special char; XML cdata end.)
define mb-make-xml-prolog
$(MB_   )$(MB_MAKE_XML_LT)$\
$(MB_    )?xml version$(MB_MAKE_EQUALS)"1.0" ?$\
$(MB_   )$(MB_MAKE_XML_GT)
endef
define _escape-xml-attr
$(MB_   )$(subst ',&apos;,$(subst ",&quote;,$(subst &,&amp;,$(subst <,&lt;,$(subst >,&gt;,$(subst $(MB_MAKE_XML_CDATA_START),,$(subst $(MB_MAKE_XML_CDATA_END),,$(1))))))))
endef