fixed multi-line text

This commit is contained in:
Timo 2020-12-21 22:45:21 +02:00
parent 88945725a3
commit 165e82c308

View File

@ -310,6 +310,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
}
private _getManualRedactionEntry(quads: any, text: string): ManualRedactionEntry {
text = text.replace(/-\n/gi, '');
const entry: ManualRedactionEntry = { positions: [] };
for (const key of Object.keys(quads)) {
for (const quad of quads[key]) {