Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

several improvements #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

several improvements #5

wants to merge 3 commits into from

Conversation

alexeibs
Copy link

  • add support for 8-bit characters ('xx)
  • fix issue with generating empty HTML files in some cases
  • remove possibly redundant std::logic_error which causes an error on some files

for (cell_def=(*row)->CellDefs->begin(), cell=(*row)->Cells.begin();
cell!=(*row)->Cells.end();
cell!=(*row)->Cells.end() && cell_def!=(*row)->CellDefs->end();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you seen any cases when we had this error on a real rtf file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have. I converted RTF specifaction (from here: https://www.microsoft.com/en-us/download/details.aspx?id=10725) to RTF format using LibreOffice Writer 5.1.4.2. Then I tried to make an HTML file from it using rtf2html. And I got that error

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so which list was longer? And what was in its 'extra' elements?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to know before I pull this, as the situation itself looks very strange.

@feschenko-nelya
Copy link

feschenko-nelya commented Jul 13, 2018

Hi, guys.
Are you going to merge this request?
This version with fixed errors is needed for my project.

@Jojo-Schmitz
Copy link

Jojo-Schmitz commented Oct 16, 2019

rebase needed, probably due to #8, which added unicode support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants