Merge pull request #2908 from coreos-inc/joseph.schorr/QS-57/dockerfile-view
Trim Dockerfile commands to fix UI
This commit is contained in:
commit
d32139292b
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ export class DockerfileCommandComponent {
|
|||
}
|
||||
|
||||
private getCommandKind(command: string): string {
|
||||
command = command.trim();
|
||||
if (!command) { return ''; }
|
||||
|
||||
var space = command.indexOf(' ');
|
||||
|
@ -40,6 +41,7 @@ export class DockerfileCommandComponent {
|
|||
}
|
||||
|
||||
private getCommandTitleHtml(command: string): string {
|
||||
command = command.trim();
|
||||
if (!command) { return ''; }
|
||||
|
||||
var kindHandlers = {
|
||||
|
|
Reference in a new issue