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

Code blocks (example & schema) don't support text wrapping #152

Closed
seglo opened this issue Aug 12, 2015 · 3 comments
Closed

Code blocks (example & schema) don't support text wrapping #152

seglo opened this issue Aug 12, 2015 · 3 comments
Labels

Comments

@seglo
Copy link

seglo commented Aug 12, 2015

When a line is longer than the width of the code div it does not overflow/wrap on to the next line. The only way to see the actual text is to copy & paste it out of the HTML document.

aglio-nowrap

Is there any way to make this text wrap via configuration or some other means?

@danielgtaylor
Copy link
Owner

@seglo thanks for the bug report. If you update to the latest version I've modified the style to add scrollbars automatically. If you would prefer wrapping, you can do something like this:

my-style.less

pre {
  white-space: pre-wrap;
{

Then run like so:

aglio -i input.apib -o output.html --theme-style default --theme-style ./my-style.less

Hope this helps!

@seglo
Copy link
Author

seglo commented Aug 14, 2015

Thanks a lot @danielgtaylor . Works like a charm. Impressive response time! 👍

@HenkPoley
Copy link

For future reference, it's of course:

pre {
  white-space: pre-wrap;
}

{ -> }

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

No branches or pull requests

3 participants