rjbs / Pod-Weaver

recombine pod documents into awesomer pod documents
26 stars 28 forks source link

make Section::Version accept many format strings #17

Closed Lx closed 10 years ago

Lx commented 11 years ago

This changeset allows a Pod::Weaver::Section::Version format to be specified over multiple lines in a weaver.ini configuration file. Each format is rendered as its own line of POD, allowing things like this in a weaver.ini file to work as expected:

[Version]
format = version %v
format =
format = This module's version numbers follow the conventions described at
format = L<semver.org|http://semver.org/>.
VERSION
       version 1.012078

       This module's version numbers follow the conventions described at
       semver.org <http://semver.org/>.

Also referenced by [rt.cpan.org #84775].

rjbs commented 10 years ago

I have merged this, along with some further changes, especially adding %T, a way to have text only in trial releases.