I've run into something that might be a bug. The following code generates a source listing with line wrapping off and a horizontal scroll bar appears as expected:
[source,bash,options="nowrap"]
----
$ curl
http://localhost:8080/my/rather/long/url/bb283468-7db4-4754-8908-8bcbe0ebfe63 -i -H "Accept: */*" -H "User-Agent: Apache-HttpClient/4.3.6 (java 1.5)" -H "Host: localhost:8080" -H "Proxy-Connection: Keep-Alive"
----
However, if this same code is in an external file that I include using this:
include::{generated}/logs/curl-request.adoc[]
Everything is rendered exactly the same
except the wrap. The "nowrap" style is not applied on the <pre> element and the source code is wrapped with no scrollbar.
As an aside, I didn't see any way to style a source listing so that it doesn't take too much space and a vertical scrollbar is displayed in case of overflow. Would it be an easy enhancement?
Thanks,
Sebastien