rtomayko / ronn

the opposite of roff
http://rtomayko.github.com/ronn/
Other
1.36k stars 84 forks source link

how to left-justify roff manpages output? #80

Open dreamcat4 opened 10 years ago

dreamcat4 commented 10 years ago

Hi, How can I tell ronn to make all .roff (manages) text LEFT-JUSTIFIED ? Many thanks.

P.S. I know there is a --styles CSS option but that is for html only.

dreamcat4 commented 10 years ago

The solution just seems to be adding this 1 line at the top of the output file:

.ad l

so…

ronn --roff manpage.ronn # created the file: manpage.1
echo ".ad l " > manpage.1.new
cat manpage.1 >> manpage.1.new
mv manpage.1.new manpage.1

BTW - here is where I found the right command to use:

http://www.premvet.co.uk/premvet/manual/pd/roff.html

dreamcat4 commented 10 years ago

Ronn could be even more powerful if there was some mechanism to escape arbitrary ROFF commands within the free text of our .ronn files. However no matter how many backslashed I try, my .ad l command always gets removed and stripped away. Ahhh.

apjanke commented 5 years ago

Hey, if you're still interested in this, it looks like Ronn is defunct, but I've forked it as Ronn-NG and I'm willing to make this work for you. Head over there and drop a feature request issue.

There's also a request for arbitrary ROFF inlining at #89.