From 31c6bb7815311a9b18b380c00f19db2f942b1914 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 4 Mar 2023 18:12:20 +0100 Subject: [PATCH] TSV SPARQL results: Add spaces around quoted triples "<<" --- lib/sparesults/src/csv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sparesults/src/csv.rs b/lib/sparesults/src/csv.rs index 076f1ea3..eb93fa13 100644 --- a/lib/sparesults/src/csv.rs +++ b/lib/sparesults/src/csv.rs @@ -177,13 +177,13 @@ fn write_tsv_term<'a>(term: impl Into>, sink: &mut impl Write) -> io } #[cfg(feature = "rdf-star")] TermRef::Triple(triple) => { - sink.write_all(b"<<")?; + sink.write_all(b"<< ")?; write_tsv_term(&triple.subject, sink)?; sink.write_all(b" ")?; write_tsv_term(&triple.predicate, sink)?; sink.write_all(b" ")?; write_tsv_term(&triple.object, sink)?; - sink.write_all(b">>")?; + sink.write_all(b" >>")?; Ok(()) } }