-
Notifications
You must be signed in to change notification settings - Fork 500
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
resolves #185 autofit font size in listing & literal blocks #186
Conversation
mojavelinux
commented
Jun 12, 2015
- autofit (reduce font size) to prevent wrapping in listing & literal blocks
- prevent font size from being reduced more than *_font_size_min
- activate autofit if autofit option is specified on block
- activate autofit if autofit-option attribute is specified on document
- add autofit example to chronicles.adoc
- add additional helper methods to core_ext
Note that this fix has some gaps. If the longest line has a callout number or the longest line uses inline formatting, the adjustment will overcompensate, making the text smaller than it has to be. This is a tricky...and expensive...calculation to get precise. |
I think for now, this is a good start. |
Is |
99aff66
to
2c246da
Compare
I think this is good to go now. |
@rlopez133 does this work for you now? |
When I try to build my pdf, getting this error:
|
Are you sure you are running it on the adoc file? I'll double check, but that seems to be the only way we'd see a DOCTYPE in the output. |
Ya running it on the same doc file. I reverted the changes to get adoc-pdf working again. Not sure why it was not happy. I manually copied the files since it wasn't avail via the git pull. This could prob be part of my prob maybe I missed something.... |
Gotcha. I'll verify. If it looks clean from my end, I'll merge and then you can test again. |
fb40f2d
to
ff706ec
Compare
- autofit (reduce font size) to prevent wrapping in listing & literal blocks - prevent font size from being reduced more than *_font_size_min - activate autofit if autofit option is specified on block - activate autofit if autofit-option attribute is specified on document - add autofit example to chronicles.adoc - add additional helper methods to core_ext
resolves #185 autofit font size in listing & literal blocks