Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/rtfjs/parser/destinations/ColortblDestinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ export class ColortblDestination extends DestinationBase {
if (this._autoIndex >= this._colors.length) {
throw new RTFJSError("colortbl doesn't define auto color");
}
for (const idx in this._colors) {
Helper.log("[colortbl] [" + idx + "] = "
+ this._colors[idx].r + "," + this._colors[idx].g + "," + this._colors[idx].b
+ " theme: " + this._colors[idx].theme);
}
this._colors.forEach((color, idx) => {
Helper.log("[colortbl] [" + idx + "] = "
+ color.r + "," + color.g + "," + color.b
+ " theme: " + color.theme);
});
this.inst._colors = this._colors;
this.inst._autoColor = this._autoIndex;
delete this._colors;
Expand Down
8 changes: 4 additions & 4 deletions src/rtfjs/parser/destinations/FonttblDestinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export class FonttblDestination extends DestinationBase {

public apply(): void {
Helper.log("[fonttbl] apply()");
for (const idx in this._fonts) {
Helper.log("[fonttbl][" + idx + "] index = " + this._fonts[idx].fontname
+ " alternative: " + this._fonts[idx].altfontname);
}
this._fonts.forEach((font, idx) => {
Helper.log("[fonttbl][" + idx + "] index = " + font.fontname
+ " alternative: " + font.altfontname);
});
this.inst._fonts = this._fonts;
delete this._fonts;
}
Expand Down
6 changes: 3 additions & 3 deletions src/rtfjs/parser/destinations/StylesheetDestination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ export class StylesheetDestination extends DestinationBase {

public apply(): void {
Helper.log("[stylesheet] apply()");
for (const idx in this._stylesheets) {
Helper.log("[stylesheet] [" + idx + "] name: " + this._stylesheets[idx].name);
}
this._stylesheets.forEach((stylesheet, idx) => {
Helper.log("[stylesheet] [" + idx + "] name: " + stylesheet.name);
});
this.inst._stylesheets = this._stylesheets;
delete this._stylesheets;
}
Expand Down