diff options
Diffstat (limited to 'librdfa')
-rw-r--r-- | librdfa/triple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/librdfa/triple.c b/librdfa/triple.c index 3ad20504..43c0065d 100644 --- a/librdfa/triple.c +++ b/librdfa/triple.c @@ -593,7 +593,8 @@ void rdfa_complete_object_literal_triples(rdfacontext* context) * serializing to text, all nodes that are descendants of the * [current element], i.e., not including the element itself, and * giving it a datatype of rdf:XMLLiteral. */ - if((current_object_literal == NULL) && + if((context->xml_literal != NULL) && + (current_object_literal == NULL) && (strchr(context->xml_literal, '<') != NULL) && ((context->datatype == NULL) || (strcmp(context->datatype, |