Charles Chan
Committed by Gerrit Code Review

Strip newline and extra spaces in application short description

Change-Id: I963902e13c70bf4f383841a9d77ded95caf3b106
......@@ -70,7 +70,7 @@ public class ApplicationsListCommand extends AbstractShellCommand {
if (shortOnly) {
print(SHORT_FMT, isActive ? "*" : " ",
app.id().id(), app.id().name(), app.version(),
app.description());
app.description().replaceAll("[\\r\\n]", " ").replaceAll(" +", " "));
} else {
print(FMT, isActive ? "*" : " ",
app.id().id(), app.id().name(), app.version(), app.origin(),
......
......@@ -37,8 +37,7 @@
<onos.app.origin>ON.Lab</onos.app.origin>
<onos.app.category>default</onos.app.category>
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.readme>Host provider that uses network config
service to discover hosts.</onos.app.readme>
<onos.app.readme>Host provider that uses network config service to discover hosts.</onos.app.readme>
</properties>
<dependencies>
......