mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-03 09:59:10 +00:00
Tweak spacing.
This commit is contained in:
parent
69ce2b45f2
commit
5dc19cd052
@ -496,6 +496,7 @@ public class Turtle {
|
|||||||
if (p.asList) writer.write("( ");
|
if (p.asList) writer.write("( ");
|
||||||
} else {
|
} else {
|
||||||
if (!p.asList) writer.write(", ");
|
if (!p.asList) writer.write(", ");
|
||||||
|
else writer.write(" ");
|
||||||
}
|
}
|
||||||
if (o instanceof StringType)
|
if (o instanceof StringType)
|
||||||
writer.write(((StringType) o).value);
|
writer.write(((StringType) o).value);
|
||||||
@ -511,7 +512,7 @@ public class Turtle {
|
|||||||
if (p.asList) writer.write(" )");
|
if (p.asList) writer.write(" )");
|
||||||
i++;
|
i++;
|
||||||
if (i < sbj.predicates.size())
|
if (i < sbj.predicates.size())
|
||||||
writer.write(";"+comment+"\r\n ");
|
writer.write(" ;"+comment+"\r\n ");
|
||||||
else {
|
else {
|
||||||
if (Utilities.noString(sbj.id))
|
if (Utilities.noString(sbj.id))
|
||||||
writer.write("]");
|
writer.write("]");
|
||||||
@ -546,6 +547,7 @@ public class Turtle {
|
|||||||
if (p.asList) b.append("( ");
|
if (p.asList) b.append("( ");
|
||||||
} else
|
} else
|
||||||
if (!p.asList) b.append(", ");
|
if (!p.asList) b.append(", ");
|
||||||
|
else b.append(" ");
|
||||||
if (o instanceof StringType)
|
if (o instanceof StringType)
|
||||||
b.append(Utilities.escapeXml(((StringType) o).value));
|
b.append(Utilities.escapeXml(((StringType) o).value));
|
||||||
else {
|
else {
|
||||||
@ -560,9 +562,9 @@ public class Turtle {
|
|||||||
if (p.asList) b.append(" )");
|
if (p.asList) b.append(" )");
|
||||||
i++;
|
i++;
|
||||||
if (i < sbj.predicates.size())
|
if (i < sbj.predicates.size())
|
||||||
b.append(";"+Utilities.escapeXml(comment)+"\r\n ");
|
b.append(" ;"+Utilities.escapeXml(comment)+"\r\n ");
|
||||||
else
|
else
|
||||||
b.append("."+Utilities.escapeXml(comment)+"\r\n\r\n");
|
b.append(" ."+Utilities.escapeXml(comment)+"\r\n\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -601,6 +603,7 @@ public class Turtle {
|
|||||||
if (po.asList) writer.write("( ");
|
if (po.asList) writer.write("( ");
|
||||||
} else {
|
} else {
|
||||||
if (!po.asList) writer.write(", ");
|
if (!po.asList) writer.write(", ");
|
||||||
|
else writer.write(" ");
|
||||||
}
|
}
|
||||||
if (o instanceof StringType)
|
if (o instanceof StringType)
|
||||||
writer.write(((StringType) o).value);
|
writer.write(((StringType) o).value);
|
||||||
@ -615,7 +618,7 @@ public class Turtle {
|
|||||||
if (po.asList) writer.write(" )");
|
if (po.asList) writer.write(" )");
|
||||||
i++;
|
i++;
|
||||||
if (i < complex.predicates.size())
|
if (i < complex.predicates.size())
|
||||||
writer.write(";");
|
writer.write(" ;");
|
||||||
if (!Utilities.noString(po.comment))
|
if (!Utilities.noString(po.comment))
|
||||||
writer.write(" # "+escape(po.comment, false));
|
writer.write(" # "+escape(po.comment, false));
|
||||||
}
|
}
|
||||||
@ -641,6 +644,7 @@ public class Turtle {
|
|||||||
b.append(po.makelink()+" ");
|
b.append(po.makelink()+" ");
|
||||||
} else
|
} else
|
||||||
if (!po.asList) b.append(", ");
|
if (!po.asList) b.append(", ");
|
||||||
|
else b.append(" ");
|
||||||
if (o instanceof StringType)
|
if (o instanceof StringType)
|
||||||
b.append(Utilities.escapeXml(((StringType) o).value));
|
b.append(Utilities.escapeXml(((StringType) o).value));
|
||||||
else {
|
else {
|
||||||
@ -654,7 +658,7 @@ public class Turtle {
|
|||||||
if (po.asList) b.append(" )");
|
if (po.asList) b.append(" )");
|
||||||
i++;
|
i++;
|
||||||
if (i < complex.predicates.size())
|
if (i < complex.predicates.size())
|
||||||
b.append(";");
|
b.append(" ;");
|
||||||
if (!Utilities.noString(po.comment))
|
if (!Utilities.noString(po.comment))
|
||||||
b.append(" # "+Utilities.escapeXml(escape(po.comment, false)));
|
b.append(" # "+Utilities.escapeXml(escape(po.comment, false)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user