clean up whitespace in repo descriptions

This cleans up the whitespace in the description item, since the
XML parsing will include the linefeeds and indenting in the description.
This commit is contained in:
Hans-Christoph Steiner
2018-10-16 17:31:33 +02:00
parent 1788546267
commit 6dd4523d3c
2 changed files with 10 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ public class RepoProviderTest extends FDroidProviderTest {
assertRepo(
defaultRepos.get(i),
reposFromXml[offset + 1], // address
reposFromXml[offset + 2], // description
reposFromXml[offset + 2].replaceAll("\\s+", " "), // description
Utils.calcFingerprint(reposFromXml[offset + 7]), // pubkey
reposFromXml[offset] // name
);