From fc0aafebdd94719dcff7e6aa647eb4de783ce757 Mon Sep 17 00:00:00 2001 From: Johannes Zillmann Date: Sat, 11 Feb 2017 15:04:00 +0100 Subject: [PATCH] Render pdf items as pre elements to see duplicate whitespaces --- .../components/debug/PdfPageView.jsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/javascript/components/debug/PdfPageView.jsx b/src/javascript/components/debug/PdfPageView.jsx index 85a693c..b387a23 100644 --- a/src/javascript/components/debug/PdfPageView.jsx +++ b/src/javascript/components/debug/PdfPageView.jsx @@ -41,9 +41,6 @@ export default class PdfPageView extends React.Component { Height - - Annotation - @@ -51,10 +48,20 @@ export default class PdfPageView extends React.Component { color: textItem.annotation.color } : null }> - { i } +
+ { i } +
+
+ { textItem.annotation ? textItem.annotation.category : '' } +
- { textItem.text } +
{ textItem.text }
{ textItem.x } @@ -68,9 +75,6 @@ export default class PdfPageView extends React.Component { { textItem.height } - - { textItem.annotation ? textItem.annotation.category : '' } - ) }