Daniel Muey > Locale-Maketext-Utils > Locale::Maketext::Utils::Phrase::Norm::Ampersand

Download:
Locale-Maketext-Utils-0.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  4
View/Report Bugs
Source  

Normalization ^

Do not use a raw ampersand even in output,chr. If used as text it needs to have a spaces around it.

Rationale

Same rationale as the Markup.

Since & is a markup character it must be done via output() in order to be safe in all contexts.

If it is used as a word it should have a space on each side of it for clarity.

IF YOU USE THIS FILTER ALSO USE … ^

… THIS FILTER Locale::Maketext::Utils::Phrase::Norm::Markup.

This is not enforced anywhere since we want to assume the coder knows what they are doing.

possible violations ^

Prefer [output,amp] over [output,chr,&] or [output,chr,38].

Problem should be self explanatory. The former gets replaced with the latter.

Prefer chr(38) over chr(&).

Problem should be self explanatory. The former gets replaced with the latter.

Ampersands need done via [output,amp].

Problem should be self explanatory. The former gets replaced with the latter.

Ampersand should have one space before and/or after unless it is embedded in an asis().

Problem should be self explanatory. Spaces get added as needed.

possible warnings ^

None

syntax highlighting: