[
https://issues.apache.org/jira/browse/SLING-9129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thierry Ygé updated SLING-9129:
-------------------------------
Issue Type: Bug (was: Improvement)
> ResourceUtils add extra line break at the end of the file
> ---------------------------------------------------------
>
> Key: SLING-9129
> URL: https://issues.apache.org/jira/browse/SLING-9129
> Project: Sling
> Issue Type: Bug
> Reporter: Thierry Ygé
> Priority: Major
>
> This method
> [https://github.com/apache/sling-org-apache-sling-testing-clients/blob/master/src/main/java/org/apache/sling/testing/clients/util/ResourceUtil.java#L49-L65]
> is adding extra line break at the end of the file it read which is not
> expected.
> Best would be that it doesn't read line by line but using
> IOUtils.toString(InputStream.class, "utf-8"), that would make sure it
> preserve the original file characters (including line breaks style if that
> would be required in a test).
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)