how to format wide terminal output?
I'd documenting a command-line utility with output 125 characters wide. The output is in a tabular format so it's essential that the lines not wrap.
How can I format that so it will fit within the margins without wrapping when I export to PDF? Can I create a variation of <pre> with font-size="xx-small" or something like that?
-
Hi Robert,
did you already had a look at the following page in our documentation: https://www.k15t.com/display/PDF/How+Can+I+Deal+with+Wide+Tables
Does that help?
Cheers,
Nils -
No, this isn't a table. It's plain text, the output of a command-line utility. For example:
============ SERVER 192.168.1.12:5701 =======================================================================================
= Name Version Free Mem CPU% Uptime =
= ------------------------------------------------------------------------------------------------------------------------- =
= 192.168.1.12:5701 1.0.0-SNAPSHOT (13a78a9357) 840Mb . 01:15:14 =
-
Hi Robert,
have you tried creating a user-macro and wrap the text in this usermacro?
E.g. you could create a new user-macro called "command" like in the attached screenshot.
Then add the following CSS to the Content Formatting section in your PDF template:
p.command {
font-size: x-small;
}This will output all text wrapped in the macro in font-size "x-small".
Does this help?
Cheers,
Nils
Screen Shot 2014-07-16 at 09.42.10.png
Please sign in to leave a comment.
Comments
6 comments