Login  Register

Prevent line break for wrapped text?

Posted by jimmarquardson on Mar 15, 2016; 5:48pm
URL: https://discuss.asciidoctor.org/Prevent-line-break-for-wrapped-text-tp4514.html

I am creating tutorials that involve running programs from the command line. Some of the commands are long enough to wrap when rendered to a PDF. For example, I have the following command:

```
sqlmap -u "http://127.0.0.1/some-website-with-a-really-long-url.extensions" --data="something=a value here"
```

In a PDF, it's rendered in 2 lines with a CRLF line break at the end of the first line. Currently, people copy the command from my PDF, and when they paste it, the commands fail because the lines are executed separately.

Is there a way to let the text flow and naturally wrap? I want it to look the same, but I don't want the extra CRLF characters to be inserted where it wraps.