mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
Revert "Workaround chrome/webkit bug of word-spacing with leading spaces."
This reverts commit fdf1c36744
.
This commit is contained in:
parent
568dc8e650
commit
0b873f62b2
@ -247,11 +247,7 @@ void HTMLTextLine::dump_text(ostream & out)
|
|||||||
if(!(state_iter1->hash_umask & State::umask_by_id(State::WORD_SPACE_ID)))
|
if(!(state_iter1->hash_umask & State::umask_by_id(State::WORD_SPACE_ID)))
|
||||||
{
|
{
|
||||||
double space_off = state_iter1->single_space_offset();
|
double space_off = state_iter1->single_space_offset();
|
||||||
if((std::abs(target - space_off) <= param.h_eps)
|
if(std::abs(target - space_off) <= param.h_eps)
|
||||||
// Chrome/webkit don't apply CSS word-spacing to leading spaces, so we don't
|
|
||||||
// convert leading offsets to spaces. See also issue #412 and chromium issue #404444.
|
|
||||||
// TODO after browsers having this bug have vanished, just remove the line below.
|
|
||||||
&& ((state_iter1->word_space == 0) || (cur_offset_iter->start_idx != 0)))
|
|
||||||
{
|
{
|
||||||
Unicode u = ' ';
|
Unicode u = ' ';
|
||||||
writeUnicodes(out, &u, 1);
|
writeUnicodes(out, &u, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user