[Groff] man makro oddity

2010-02-19 Thread walter harms
hi, i was playing with man pages and found by chance that empty lines before .TH seems to confuse groff. ./" ./" ./" .TH The header works fine (no warnings what so ever) but has am empty page in front and changes in page numbering are ignored. ./" ./" ./" .TH The header But

Re: [Groff] man makro oddity

2010-02-19 Thread Clarke Echols
If you read the .TH macro code carefully, you'll discover its role is to set up the printing for that file (or group of files). It initializes page dimensions, type faces, size and spacing, etc. Any empty lines before it result in a break (.br), and producegroff/troff's default behavior before

Re: [Groff] man makro oddity

2010-02-19 Thread Werner LEMBERG
> i was playing with man pages and found by chance that empty lines > before .TH seems to confuse groff. `Confuse'? I don't think so. > > ./" > > ./" > > ./" > .TH The header > > > > > works fine (no warnings what so ever) but has am empty page in front > and changes in page numbering ar

Re: [Groff] man makro oddity

2010-02-19 Thread walter harms
Werner LEMBERG schrieb: >> i was playing with man pages and found by chance that empty lines >> before .TH seems to confuse groff. > > `Confuse'? I don't think so. > >> >> ./" >> >> ./" >> >> ./" >> .TH The header >> >> >> >> >> works fine (no warnings what so ever) but has am empty pag

Re: [Groff] man makro oddity

2010-02-19 Thread Tadziu Hoffmann
> I do not think there is anything to "fix", it is simply > a question of helping users. Empty lines before .TH are > most likely not what the user intended. *if* some can > fix that easy (read: print a warning) someone should do. You could put this in the manpage macro file: .de blankwarn .