asciidoc-0.1: test/asciidoctor/listing/source-nowrap.test
[source, java, options="nowrap"]
----
public class ApplicationConfigurationProvider extends HttpConfigurationProvider {
public Configuration getConfiguration(ServletContext context) {
return ConfigurationBuilder.begin()
.addRule()
.when(Direction.isInbound().and(Path.matches("/{path}")))
.perform(Log.message(Level.INFO, "Client requested path: {path}"))
.where("path").matches(".*");
}
}
----
>>>
Document
{ docMeta =
Meta
{ docTitle = []
, docTitleAttributes = Nothing
, docAuthors = []
, docRevision = Nothing
, docAttributes = fromList [ ( "sectids" , "" ) ]
}
, docBlocks =
[ Block
Attr
( [] , fromList [ ( "options" , "nowrap" ) ] )
Nothing
(Listing
(Just (Language "java"))
[ SourceLine
"public class ApplicationConfigurationProvider extends HttpConfigurationProvider {"
[]
, SourceLine "" []
, SourceLine
" public Configuration getConfiguration(ServletContext context) {"
[]
, SourceLine " return ConfigurationBuilder.begin()" []
, SourceLine " .addRule()" []
, SourceLine
" .when(Direction.isInbound().and(Path.matches(\"/{path}\")))"
[]
, SourceLine
" .perform(Log.message(Level.INFO, \"Client requested path: {path}\"))"
[]
, SourceLine " .where(\"path\").matches(\".*\");" []
, SourceLine " }" []
, SourceLine "}" []
])
]
}