From 03587d305b2dc3e492512a938b630ed105718892 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 13 Aug 2012 21:05:14 +0800 Subject: [PATCH 1/2] use monospace for white space, for text copy --- src/Consts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Consts.cc b/src/Consts.cc index b4e3785..f0cff08 100644 --- a/src/Consts.cc +++ b/src/Consts.cc @@ -36,7 +36,7 @@ const std::string HTML_HEAD = "\n\ }\ .l > .w {\ display:inline-block;\ - visibility:hidden;\ + font-family: monospace;\ }\ ::selection{\ background: rgba(168,209,255,0.5);\ From a7ec357a72f718a05a6a9545e05b328e67675058 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 13 Aug 2012 22:20:38 +0800 Subject: [PATCH 2/2] clean code --- src/HTMLRenderer.h | 2 +- src/pdftohtmlEX.cc | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/HTMLRenderer.h b/src/HTMLRenderer.h index 0664031..f485971 100644 --- a/src/HTMLRenderer.h +++ b/src/HTMLRenderer.h @@ -94,7 +94,7 @@ class HTMLRenderer : public OutputDev virtual void drawImage(GfxState * state, Object * ref, Stream * str, int width, int height, GfxImageColorMap * colorMap, GBool interpolate, int *maskColors, GBool inlineImg); - private: + protected: void close_cur_line(); // return the mapped font name diff --git a/src/pdftohtmlEX.cc b/src/pdftohtmlEX.cc index 2abea15..9986a43 100644 --- a/src/pdftohtmlEX.cc +++ b/src/pdftohtmlEX.cc @@ -18,14 +18,14 @@ #include -#include "Object.h" -#include "PDFDoc.h" -#include "PDFDocFactory.h" -#include "HTMLRenderer.h" -#include "GlobalParams.h" -#include "Error.h" -#include "DateInfo.h" +#include +#include +#include +#include +#include +#include +#include "HTMLRenderer.h" #include "Param.h" #define PDFTOHTMLEX_VERSION "0.1"