Merge pull request #16297 from Snuffleupagus/copy-all-null-chars
Remove null chars, i.e. `\u0000`, when getting all text (PR 16286 follow-up)
This commit is contained in:
commit
5f7e43a2b1
@ -47,6 +47,7 @@ import {
|
|||||||
MAX_SCALE,
|
MAX_SCALE,
|
||||||
MIN_SCALE,
|
MIN_SCALE,
|
||||||
PresentationModeState,
|
PresentationModeState,
|
||||||
|
removeNullCharacters,
|
||||||
RenderingStates,
|
RenderingStates,
|
||||||
SCROLLBAR_PADDING,
|
SCROLLBAR_PADDING,
|
||||||
scrollIntoView,
|
scrollIntoView,
|
||||||
@ -671,7 +672,7 @@ class PDFViewer {
|
|||||||
buffer.push("\n");
|
buffer.push("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
texts.push(buffer.join(""));
|
texts.push(removeNullCharacters(buffer.join("")));
|
||||||
}
|
}
|
||||||
|
|
||||||
return texts.join("\n");
|
return texts.join("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user