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
CSS or HTML solution for dot leaders #770
Comments
Any chance of this being implemented? Still haven't found a workable solution! |
I think we'll definitely implement this. We just need to get to a point where we can ramp back up development. As you may have noticed things have been a little slow lately. |
Thanks for getting back, and sorry for being a bother. I would love to help out with development but sadly this is beyond my skills. If you need any testing done for implementing this, please let me know! |
I know it's hard to wait; we appreciate everyone's patience. You'll get a heads-up via the issue when we start working on it. |
This can be done using an alternative css model. Tested in v0.7.0. Try:
I just can't actually get white-space:pre to work. |
Would also be very interested in support for leaders. |
It's been about four years, and I don't even work at the company where I built this app anymore, and I may never need to do this again. That being said… I'm still curious about this being implemented 🤣 |
Dot leaders are most mostly used in print for restaurant menus or table of content listings. From what I gather, both of these are commonly distributed as PDFs, and very often auto-generated by software such as dompdf.
The W3C has had a draft spec on this function for about a decade, but seem to be dragging their feet about any actual implementation. Though, they do provide some examples of workarounds.
Also, this A List Apart article talks about this very feature using Prince, who actually seem to have gone ahead and made their own function years ago.
Using the following code produces great results for the web, across all browsers and mobile, even for my email template, but not luck so far with dompdf. I'm guessing most of the trouble is with the current
float
support.Below are two examples of the different results of this code:
Screenshot of dot leaders per W3C example in Chrome
Screenshot of same code, rendered by dompdf
Any recommendations on how this could be achieved would be very much appreciated!
The text was updated successfully, but these errors were encountered: