rtf-parser
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "rtf-parser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "This is a general RTF parser. It takes a text stream and produces a document object representing the parsed document. In and of itself, this isn't super useful but it's the building block for other tools to convert RTF into other formats.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,4 +29,2 @@ 'use strict' | ||
addContent (node) { | ||
const defaultFont = this.getFont(0) || {family: 'roman', charset: 'ASCII', name: 'Serif'} | ||
const defaultColor = this.getColor(0) || {red: 0, blue: 0, green: 0} | ||
node.style = Object.assign({}, this.getStyle()) | ||
@@ -33,0 +31,0 @@ node.style.font = this.getFont(node.style.font) |
@@ -300,3 +300,3 @@ 'use strict' | ||
this.table = [] | ||
this.currentFont = null | ||
this.currentFont = {family: 'roman', charset: 'ASCII', name: 'Serif'} | ||
} | ||
@@ -303,0 +303,0 @@ addContent (text) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20918
646