Skip to content

Commit

Permalink
fix: text rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelbosc committed Jan 4, 2021
1 parent 926398a commit baaccb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/PdfRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,5 @@ function parsePDF(text, updateData) {
throw ("Invalid PDF Scoresheet file, unable to find the JSON data!");
}

export {PdfRenderer, formatter, getLabel, getScore, getScoreDescription, getScoreLongDescription, parsePDF};
export {PdfRenderer, formatter, getLabel, getScore, getScoreDescription, getScoreLongDescription, parsePDF, splitLines};

6 changes: 5 additions & 1 deletion src/js/TextRenderer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {formatter, getScore} from "./PdfRenderer";
import {formatter, getScore, splitLines} from "./PdfRenderer";


class TextRenderer {
Expand Down Expand Up @@ -35,6 +35,10 @@ class TextRenderer {
}
}

addHeadlines(head, text, x = this.defaultX) {
this.addHeadline(head, splitLines(text), x);
}

addHeadline2(head, text) {
this.addHeadline(head, text);
}
Expand Down

0 comments on commit baaccb0

Please sign in to comment.