mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
revert previous commit, which broke the test case for text visibility
This commit is contained in:
parent
7706bd7a96
commit
568dc8e650
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
else if (l > 1)
|
||||
{
|
||||
text.push_back(- decomposed_text.size() - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user