Strip newline and extra spaces in application short description
Change-Id: I963902e13c70bf4f383841a9d77ded95caf3b106
diff --git a/cli/src/main/java/org/onosproject/cli/app/ApplicationsListCommand.java b/cli/src/main/java/org/onosproject/cli/app/ApplicationsListCommand.java
index ee14202..9efa612 100644
--- a/cli/src/main/java/org/onosproject/cli/app/ApplicationsListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/app/ApplicationsListCommand.java
@@ -70,7 +70,7 @@
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(),
diff --git a/providers/netcfghost/pom.xml b/providers/netcfghost/pom.xml
index 340fb63..4990541 100644
--- a/providers/netcfghost/pom.xml
+++ b/providers/netcfghost/pom.xml
@@ -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>