[pmwiki-users] capital first letters
Patrick R. Michaud
pmichaud at pobox.com
Fri Jul 1 12:26:41 CDT 2005
On Fri, Jul 01, 2005 at 08:38:15AM +0200, Joachim Durchholz wrote:
> Patrick R. Michaud wrote:
> Slight improvement for the second line:
> '/<p>((<([^"\'>]|"[^"]*"|\'[^\']*\')>)*[[:upper:]])/',
>
> One other generalisation should be done IMHO: Some tags should prevent
> capitalisation. I can imagine stuff like <h1>, ... <h6>, <ul>, etc.
Well, that won't (or at least shouldn't) happen here, since <h1>, <h6>,
<ul>, etc. can never legally appear inside of a <p> tag (and PmWiki doesn't
generate them). I suppose someone could generate a Markup() somehow
that inserts a </p> prior to another block markup tag, but if that's
the case they should be using <:block> to completely avoid the <p>
tag in the first place, in which case the firstcap rule doesn't get
activated anyway.
At any rate, following PmWikiPhilosophy #3 I propose the simple,
straightforward solution first and save anything more complex for when
we actually need it and know the problem better.
Pm
More information about the pmwiki-users
mailing list