1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
This commit is contained in:
Lu Wang 2012-08-23 21:47:26 +02:00
parent 4fec08e764
commit ec87a51a75

View File

@ -328,7 +328,7 @@ void HTMLRenderer::prepare_line(GfxState * state)
// horizontal position // horizontal position
// try to merge with the last line if possible // try to merge with the last line if possible
double target = (cur_tx - draw_tx) * draw_scale; double target = cur_tx - draw_tx;
if(abs(target) < param->h_eps) if(abs(target) < param->h_eps)
{ {
// ignore it // ignore it
@ -338,7 +338,7 @@ void HTMLRenderer::prepare_line(GfxState * state)
// don't close a pending span here, keep the styling // don't close a pending span here, keep the styling
double w; double w;
auto wid = install_whitespace(target, w); auto wid = install_whitespace(target * draw_scale, w);
html_fout << format("<span class=\"_ _%|1$x|\">%2%</span>") % wid % (target > 0 ? " " : ""); html_fout << format("<span class=\"_ _%|1$x|\">%2%</span>") % wid % (target > 0 ? " " : "");
draw_tx += w / draw_scale; draw_tx += w / draw_scale;
} }