On Wed, Jul 20, 2011 at 5:32 PM, Shinnok <[email protected]> wrote: > On 07/19/2011 09:05 PM, Daniel Molkentin wrote: >> Hi Shinnok, >> >> On 7/18/2011 11:57 PM, ext Shinnok wrote: >>> I created a Qt Compiled Help module of the Linux Man Pages section >>> 1(system calls) and 2(library functions) for context help integration >>> into Qt Creator(and Qt Assistant). It is available at: >>> >>> http://shinnok.com/rants/2011/07/19/linux-man-pages-integration-with-qt-creator/ >>> >>> Maybe someone finds it as useful as I do when it comes to native >>> development on the Linux platform using the Qt Creator IDE. :) >> >> Absolutely. This is great! Just one thing: the fixed block width makes >> it hard to use the current version with Creator context help. Could you >> improve the wrapping there? >> >> Cheers, >> Daniel >> > > Hey Daniel, > > All text paragraphs are in <pre> blocks and thus the fixed width is > inherited from the <pre> blocks and hence the issue. The only way to get > around this easily is to do something like this: > pre { > white-space: pre-wrap; > } > > However, it won't wrap that nice, since the white space at the start of > a line is still there: > http://trunk.shinnok.com/qt/qtcreator-manpages-nowrap-lines.png > vs > http://trunk.shinnok.com/qt/qtcreator-manpages-wrap-lines.png > > In my opinion it doesn't really help, since now instead of having to > scroll the browser view to read entire paragraphs in comfortable manner, > you would have to resize it(increase it's width). > > It looks like this could be fixed only at generation time(man2html) by > specifying a smaller block size for the <pre> output, however man2html > doesn't have such an argument nor color output(maybe the css style was > manually added). CC'ing Michael Kerrisk, the Linux Man Pages maintainer, > for an answer to these questions. > > Michael, how did you generate the beautiful colored online version of > the manpages and how can I make it wrap lines better or at least have a > smaller <pre> block width?
With man2html and some *very* hacky shell scripts. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
