mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Use span
instead of div
in the text layer
This improves copy/pasting text content since it reduces the amount of unnecessary newlines.
This commit is contained in:
parent
4e3d694451
commit
5f15dc2023
4 changed files with 8 additions and 8 deletions
|
@ -55,7 +55,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
|
||||
function appendText(task, geom, styles) {
|
||||
// Initialize all used properties to keep the caches monomorphic.
|
||||
var textDiv = document.createElement('div');
|
||||
var textDiv = document.createElement('span');
|
||||
var textDivProperties = {
|
||||
style: null,
|
||||
angle: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue