[
https://issues.apache.org/jira/browse/JENA-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065831#comment-15065831
]
Andy Seaborne commented on JENA-1098:
-------------------------------------
Care is needed with """-strings because of the use of raw newlines in the
output inside literal lexical forms.
They are vulnerable to newline encoding and transcoding. Even if Jena is very
careful to write exactly the literal as given, it may be altered when read in
again elsewhere or if going through any process that automatically manages line
endings (such as a text editor).
> Print """ strings in pretty form of Turtle.
> -------------------------------------------
>
> Key: JENA-1098
> URL: https://issues.apache.org/jira/browse/JENA-1098
> Project: Apache Jena
> Issue Type: Wish
> Components: RIOT
> Reporter: Andy Seaborne
> Priority: Minor
>
> The Turtle pretty writer could print long strings using """.
> This can be done using a specialist (subclass of) {{NodeFormatterTTL}} in the
> pretty writer {{TurtleShell}}. This will cover TriG as well.
> The simple string, @ and ^^ forms need to be considered.
> Other turtle forms should not be affected - they are fro convenient text text
> processing and the all-on-one-line effect is desirable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)