The CSS is responsible for controlling whether wrapping happens or not in a listing / literal block.
In the default AsciiDoc Python stylesheet, the preformatted text is never wrapped. In the default Asciidoctor, the preformatted text is wrapped by default (to make the page more responsive and mobile friendly). You can change this behavior so that a scrollbar appears using the "nowrap" option. [%nowrap] .... very long line of literal text very long line of literal text very long line of literal text very long line of literal text .... This subject is discussed in the following section in the Asciidoctor user manual: http://asciidoctor.org/docs/user-manual/#to-wrap-or-to-scroll In the end, though, it comes down to the behavior specified in the CSS. Cheers, -Dan On Fri, Aug 28, 2015 at 11:20 AM, 'Marco Ciampa' via asciidoc < [email protected]> wrote: > On Fri, Aug 28, 2015 at 04:02:36PM +0000, Grant Edwards wrote: > > On 2015-08-28, 'Marco Ciampa' via asciidoc <[email protected]> > wrote: > > > On Fri, Aug 28, 2015 at 02:47:06PM +0000, Grant Edwards wrote: > > >> On 2015-08-28, Grant Edwards <[email protected]> wrote: > > >>> How do you prevent asciidoc from wrapping source listings like this > > >>> > > > > > > long_line_of_code + here - that_I_definitely_do_not_want - to() * be() > * wrapped() > > > ^here insert a space... > > > > > > like this: > > > > > > long_line_of_code + here - that_I_definitely_do_not_want - to() * > be() * wrapped() > > > > That doesn't help. The line still gets wrapped (either inside a > > listing block or standing alone). Is the "leading space disables > > line wrapping" feature something new? I'm using asciidoc 8.6.9. > > So your asciidoc(tor) is broken or there is something else you do not > say... > > See: > http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#source-code > > Regards, > > -- > > > Marco Ciampa > > I know a joke about UDP, but you might not get it. > > +------------------------+ > | GNU/Linux User #78271 | > | FSFE fellow #364 | > +------------------------+ > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. > -- Dan Allen | http://google.com/profiles/dan.j.allen -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
