fix: double up of semicolons when subject is a blank node · RDFLib/rdflib@412fb5d (original) (raw)
File tree
2 files changed
lines changed
- rdflib/plugins/serializers
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -197,7 +197,7 @@ def s_squared(self, subject): | ||
197 | 197 | return False |
198 | 198 | self.write("\n" + self.indent() + "[]") |
199 | 199 | self.predicateList(subject, newline=False) |
200 | -self.write(" ;\n.") | |
200 | +self.write("\n.") | |
201 | 201 | return True |
202 | 202 | |
203 | 203 | def path(self, node, position, newline=False): |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -84,31 +84,31 @@ def test_sort_semiblank_graph() -> None: | ||
84 | 84 | [] ns1:has |
85 | 85 | [ |
86 | 86 | rdfs:seeAlso ns1:A ; |
87 | - ] ; ; | |
87 | + ] ; | |
88 | 88 | . |
89 | 89 | |
90 | -[] rdfs:seeAlso ns1:B ; ; | |
90 | +[] rdfs:seeAlso ns1:B ; | |
91 | 91 | . |
92 | 92 | |
93 | 93 | [] ns1:has |
94 | 94 | [ |
95 | 95 | rdfs:seeAlso ns1:C ; |
96 | - ] ; ; | |
96 | + ] ; | |
97 | 97 | . |
98 | 98 | |
99 | -[] rdfs:seeAlso ns1:A ; ; | |
99 | +[] rdfs:seeAlso ns1:A ; | |
100 | 100 | . |
101 | 101 | |
102 | -[] rdfs:seeAlso ns1:C ; ; | |
102 | +[] rdfs:seeAlso ns1:C ; | |
103 | 103 | . |
104 | 104 | |
105 | -[] rdfs:seeAlso ns1:B ; ; | |
105 | +[] rdfs:seeAlso ns1:B ; | |
106 | 106 | . |
107 | 107 | |
108 | 108 | [] ns1:has |
109 | 109 | [ |
110 | 110 | rdfs:seeAlso ns1:B ; |
111 | - ] ; ; | |
111 | + ] ; | |
112 | 112 | . |
113 | 113 | |
114 | 114 | """ |