-
Notifications
You must be signed in to change notification settings - Fork 10
feat(HTML): Improve Non-Paginated HTML Report Formatting #70
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
base: master
Are you sure you want to change the base?
Conversation
…hat does work so it probably does work.
|
All objects which were seen were revamped, particularly strings, tables, images, areas, and the root layer. |
|
Creation of the function |
|
Technically it is safe because the static strings are allocated in the BSS which is stable and readonly. It would be unsafe however to return a reference to the const char array - but references to the constant strings are safe. For good form, however, I would recommend either declaring the string array as a static or else move it and declare it as a static global and then GetFont can reference that instead of the automatic array. |
|
I had accidentally unchecked the "allow maintainers to edit" box it seems, and I just noticed, my bad. It's allowed now, and ya'll should be able to push to my branch to resolve these things. |
|
@brennenputh - thanks! I think we'll likely end up moving your work to a new branch in the LightSys copy before merging into master, though. We're needing to separate reformatting and actual code into separate commits, which unfortunately would lose the current commit history with this PR, but in the long run it'll help us see things more clearly with git blame (e.g., having git blame ignore reformatting-only revs). @RubberDuckCoding is a former Code-a-Thon-er who is working on finishing this project & getting it working well in Gmail/etc. |
That's cool, I hadn't though a layer deeper to how things actually get arranged once compiled! |
|
Here's another reference that can be helpful on C code safety. There's things we can all learn from this (even for me, who contributed to this effort some years ago): https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf |
This pull request improves upon the HTML report format already present in Centrallix by replacing table-based HTML with flexbox-based HTML. The goal is to generate a HTML document similar in format and style to the PDF report using CSS elements of recent browser support.
Code-A-Thon Team: Brennen Puth, Levi Larsen, Kai Delsing, Josiah Hardaway