From 568dc8e65029097cae1aef84d902f5e1c311c35b Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 15 Mar 2015 17:36:06 +0800 Subject: [PATCH] revert previous commit, which broke the test case for text visibility --- CMakeLists.txt | 2 +- src/HTMLTextLine.cc | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b83c42..b3892f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ option(ENABLE_SVG "Enable SVG support, for generating SVG background images and include_directories(${CMAKE_SOURCE_DIR}/src) -set(PDF2HTMLEX_VERSION "0.13.0") +set(PDF2HTMLEX_VERSION "0.13.1") set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION}) add_custom_target(dist COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD diff --git a/src/HTMLTextLine.cc b/src/HTMLTextLine.cc index f315c4b..7638b73 100644 --- a/src/HTMLTextLine.cc +++ b/src/HTMLTextLine.cc @@ -37,17 +37,7 @@ HTMLTextLine::HTMLTextLine (const HTMLLineState & line_state, const Param & para void HTMLTextLine::append_unicodes(const Unicode * u, int l, double width) { if (l == 1) - { - // Chromium #404444 - // word-spacing is not applied for the leading space, so convert it to offset - if (u[0] == ' ' && text.empty()) - { - append_offset(width); - return; - } - else - text.push_back(min(u[0], (unsigned)INT_MAX)); - } + text.push_back(min(u[0], (unsigned)INT_MAX)); else if (l > 1) { text.push_back(- decomposed_text.size() - 1);