Addressing CR feedback and fixing issue with document title
This commit is contained in:
parent
2e64a22178
commit
f5052633a3
|
@ -1,3 +1,5 @@
|
|||
# TypeScript Language Specification
|
||||
|
||||
Version 1.4
|
||||
|
||||
October, 2014
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
var sys = (function () {
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var fileStream = new ActiveXObject("ADODB.Stream");
|
||||
fileStream.Type = 2;
|
||||
var binaryStream = new ActiveXObject("ADODB.Stream");
|
||||
|
@ -171,7 +170,7 @@ function convertDocumentToMarkdown(doc) {
|
|||
lastInTable = inTable;
|
||||
}
|
||||
function writeDocument() {
|
||||
var title = doc.builtInDocumentProperties.item(1);
|
||||
var title = doc.builtInDocumentProperties.item(1) + "";
|
||||
if (title.length) {
|
||||
write("# " + title + "\n\n");
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ module Word {
|
|||
export interface Document {
|
||||
fields: Fields;
|
||||
paragraphs: Paragraphs;
|
||||
builtInDocumentProperties: Collection<string>;
|
||||
builtInDocumentProperties: Collection<any>;
|
||||
close(saveChanges: boolean): void;
|
||||
range(): Range;
|
||||
}
|
||||
|
@ -119,7 +119,6 @@ module Word {
|
|||
}
|
||||
|
||||
var sys = (function () {
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var fileStream = new ActiveXObject("ADODB.Stream");
|
||||
fileStream.Type = 2 /*text*/;
|
||||
var binaryStream = new ActiveXObject("ADODB.Stream");
|
||||
|
@ -323,7 +322,7 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
|
|||
}
|
||||
|
||||
function writeDocument() {
|
||||
var title = doc.builtInDocumentProperties.item(1);
|
||||
var title = doc.builtInDocumentProperties.item(1) + "";
|
||||
if (title.length) {
|
||||
write("# " + title + "\n\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue