mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
..
This commit is contained in:
parent
2c5ccccf59
commit
54e971bfc0
@ -50,7 +50,7 @@ void HTMLTextLine::append_offset(double width)
|
||||
if((!offsets.empty()) && (offsets.back().start_idx == text.size()))
|
||||
offsets.back().width += width;
|
||||
else
|
||||
offsets.emplace_back(text.size(), width, this->width);
|
||||
offsets.emplace_back(text.size(), width);
|
||||
this->width += width;
|
||||
}
|
||||
|
||||
@ -477,7 +477,6 @@ void HTMLTextLine::optimize_aggressive(std::vector<HTMLTextLine*> & lines)
|
||||
// letter space / word space are not taken into consideration (yet)
|
||||
while(true)
|
||||
{
|
||||
lines.push_back(cur_line);
|
||||
|
||||
|
||||
|
||||
|
@ -66,12 +66,11 @@ public:
|
||||
};
|
||||
|
||||
struct Offset {
|
||||
Offset(size_t size_idx, double width, double start_width)
|
||||
:start_idx(size_idx),width(width),start_width(start_width)
|
||||
Offset(size_t size_idx, double width)
|
||||
:start_idx(size_idx),width(width)
|
||||
{ }
|
||||
size_t start_idx; // should put this Offset right before text[start_idx];
|
||||
double width;
|
||||
double start_width; // the width of the line before this offset
|
||||
};
|
||||
|
||||
void append_unicodes(const Unicode * u, int l, double width);
|
||||
|
Loading…
Reference in New Issue
Block a user