Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
7ecc59d7
Commit
7ecc59d7
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-05-22 14:32:04 by cvscast] print 'false' XML elements
Original author: cvscast Date: 2003-05-22 14:32:04+00:00
parent
a5443ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
runtime/value.ml
View file @
7ecc59d7
...
...
@@ -141,12 +141,18 @@ and print_seq ppf = function
|
_
->
()
and
print_xml
ppf
=
function
|
(
Atom
tag
,
Pair
(
Record
attr
,
content
))
->
|
(
tag
,
Pair
(
attr
,
content
))
->
Format
.
fprintf
ppf
"@[<hv2><%a%a>[@ %a@]]"
Utf8
.
print
(
Atoms
.
value
tag
)
print_
record
(
LabelMap
.
get
attr
)
print_tag
tag
print_
attr
attr
print_seq
content
|
_
->
assert
false
and
print_tag
ppf
=
function
|
Atom
tag
->
Utf8
.
print
ppf
(
Atoms
.
value
tag
)
|
tag
->
Format
.
fprintf
ppf
"(%a)"
print
tag
and
print_attr
ppf
=
function
|
Record
attr
->
print_record
ppf
(
LabelMap
.
get
attr
)
|
attr
->
Format
.
fprintf
ppf
"(%a)"
print
attr
and
print_record
ppf
=
function
|
[]
->
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment