TSV SPARQL results: Add spaces around quoted triples "<<"

pull/409/head
Tpt 2 years ago committed by Thomas Tanon
parent 7e7489499d
commit 31c6bb7815
  1. 4
      lib/sparesults/src/csv.rs

@ -177,13 +177,13 @@ fn write_tsv_term<'a>(term: impl Into<TermRef<'a>>, 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(())
}
}

Loading…
Cancel
Save