Committed by
Gerrit Code Review
Strip newline and extra spaces in application short description
Change-Id: I963902e13c70bf4f383841a9d77ded95caf3b106
Showing
2 changed files
with
2 additions
and
3 deletions
... | @@ -70,7 +70,7 @@ public class ApplicationsListCommand extends AbstractShellCommand { | ... | @@ -70,7 +70,7 @@ public class ApplicationsListCommand extends AbstractShellCommand { |
70 | if (shortOnly) { | 70 | if (shortOnly) { |
71 | print(SHORT_FMT, isActive ? "*" : " ", | 71 | print(SHORT_FMT, isActive ? "*" : " ", |
72 | app.id().id(), app.id().name(), app.version(), | 72 | app.id().id(), app.id().name(), app.version(), |
73 | - app.description()); | 73 | + app.description().replaceAll("[\\r\\n]", " ").replaceAll(" +", " ")); |
74 | } else { | 74 | } else { |
75 | print(FMT, isActive ? "*" : " ", | 75 | print(FMT, isActive ? "*" : " ", |
76 | app.id().id(), app.id().name(), app.version(), app.origin(), | 76 | app.id().id(), app.id().name(), app.version(), app.origin(), | ... | ... |
... | @@ -37,8 +37,7 @@ | ... | @@ -37,8 +37,7 @@ |
37 | <onos.app.origin>ON.Lab</onos.app.origin> | 37 | <onos.app.origin>ON.Lab</onos.app.origin> |
38 | <onos.app.category>default</onos.app.category> | 38 | <onos.app.category>default</onos.app.category> |
39 | <onos.app.url>http://onosproject.org</onos.app.url> | 39 | <onos.app.url>http://onosproject.org</onos.app.url> |
40 | - <onos.app.readme>Host provider that uses network config | 40 | + <onos.app.readme>Host provider that uses network config service to discover hosts.</onos.app.readme> |
41 | - service to discover hosts.</onos.app.readme> | ||
42 | </properties> | 41 | </properties> |
43 | 42 | ||
44 | <dependencies> | 43 | <dependencies> | ... | ... |
-
Please register or login to post a comment