-
Notifications
You must be signed in to change notification settings - Fork 227
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
Bug: <center> does not support internal HTML tags #640
Comments
Hi @Lucas-C , I am trying to understand this issue. Could not get in properly though. <!DOCTYPE html>
<html>
<body>
<center>
<p>Some dummy text</em>, and <b>some in bold</b>,
and finally <a href="https://github.com/PyFPDF/fpdf2">an hyperlink</a>.</p>
</center>
</body>
</html> It gives following output - "Some dummy text, and some in bold, and finally an hyperlink". And I am getting the Bug here. Can you explain a bit? |
Hey @ssavi-ict! Thank you for looking at other opportunities to contribute to You must have seen something like this when rendering this HTML snippet in a browser: If you compare with the PDF included in the issue description, What we would like is to have the same viual result in both case, This is not a very easy task, as it will probably mean making changes to how |
This is one of the many things that #339 is meant to solve. I hope I'll get https://github.com/gmischler/fpdf2/tree/TextRegion to a state soon that makes it suitable for a PR (currently in a heavy refactoring phase). Once the basic functionality is in place, |
That would be awesome 😊 Do you think that other |
Implementing the core concepts is not easily divisible, because I need to figure out the best interaction between various parts of the system. The first attempt has been sitting idle for a while, sorry for that. I've started a refactor as a result of our recent discussion about tables and will try to get it to a presentable state "real soon now"... Once the base system is in place, specialized subclasses for specific tasks should be reasonably easy to add by others (eg. table cells, TOCs, arbitrarily shaped outlines, etc.). |
@gmischler , Thanks for the update. As you are working on this now, I think I should look for other issues. @Lucas-C any suggestion? |
Well you could have a look at our issues labeled Specifically, you could have a look at those ones:
Also, if you have other ideas for combining |
I've just checked in #897, which should solve this problem. |
Minimal code reproducing the issue:
Produces: issue_640.pdf
This issue is related to #91 & #151
The text was updated successfully, but these errors were encountered: