rust-cli / roff-rs

ROFF (man page format) generation library
docs.rs/roff
Apache License 2.0
59 stars 11 forks source link

Revise title-generation function #7

Closed codesections closed 2 years ago

codesections commented 5 years ago

This PR revises the title-generation function to accept a Vec of Strings. This allows it to accept other arguments that are passed to .TH (such as the date and version). As disscussed in #6, this would be useful to any users of roff-rs that want to configure the date or version for a man page (including man).

It also removes the capitalization, in part because not all of these arguments are capitalized and in part because that degree of semantic formatting (titles need to be capitalized) seems more appropriate for a higher level crate like man.

epage commented 2 years ago

This was addressed in #15