summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 21f13ee)
raw | patch | inline | side by side (parent: 21f13ee)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Sun, 18 Mar 2007 00:40:13 +0000 (20:40 -0400) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 19 Mar 2007 01:53:50 +0000 (21:53 -0400) |
I'd like to start using references to the glossary in the user manual.
The "ref_" prefix for these references seems a little generic; so
replace with "def_".
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
The "ref_" prefix for these references seems a little generic; so
replace with "def_".
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Documentation/sort_glossary.pl | patch | blob | history |
index 05dc7b2c7b3653c2b70850e881263e9c5236e153..4ae6290368cef458ca6ba1c90a666c18ca7af9e7 100644 (file)
@keys=sort {uc($a) cmp uc($b)} keys %terms;
$pattern='(\b(?<!link:git-)'.join('\b|\b(?<!-)',reverse @keys).'\b)';
foreach $key (@keys) {
- $terms{$key}=~s/$pattern/sprintf "<<ref_".no_spaces($1).",$1>>";/eg;
- print '[[ref_'.no_spaces($key).']]'.$key."::\n"
+ $terms{$key}=~s/$pattern/sprintf "<<def_".no_spaces($1).",$1>>";/eg;
+ print '[[def_'.no_spaces($key).']]'.$key."::\n"
.format_tab_80($terms{$key})."\n";
}