1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

revert previous commit, which broke the test case for text visibility

This commit is contained in:
Lu Wang 2015-03-15 17:36:06 +08:00
parent 7706bd7a96
commit 568dc8e650
2 changed files with 2 additions and 12 deletions

View File

@ -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

View File

@ -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);