提交 2fbdbe80 编写于 作者: M Martin Aeschlimann

Polish for #4013

上级 ff22654e
......@@ -49,7 +49,7 @@ configurationRegistry.registerConfiguration({
'html.format.maxPreserveNewLines': {
'type': ['number', 'null'],
'default': null,
'description': nls.localize('format.maxPreserveNewLines', "Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimeted."),
'description': nls.localize('format.maxPreserveNewLines', "Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited."),
},
'html.format.indentHandlebars': {
'type': 'boolean',
......@@ -64,7 +64,7 @@ configurationRegistry.registerConfiguration({
'html.format.extraLiners': {
'type': ['string', 'null'],
'default': null,
'description': nls.localize('format.extraLiners', "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to [head,body,/html]."),
'description': nls.localize('format.extraLiners', "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\"."),
},
}
});
......@@ -113,7 +113,7 @@ export class HTMLWorker {
private getFormatListOption(key: string, dflt: string[]): string[] {
let list = this.getFormatOption(key, null);
if (list) {
return list.split(',');
return list.split(',').map(t => t.trim());
}
return dflt;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册