Project

General

Profile

« Previous | Next » 

Revision 7511

redmine_synonyms: Support plain text labels other than Alternative, such as Replace with

View differences:

redmine_synonyms
8 8

  
9 9
ambigTerm=
10 10
term=
11
sed -n 's/^<h[1-4][^>]*>(<img [^>]*title="([^"]*):"[^>]*>|(Alternative):)? *<a href="#[^>]+>([^<]+).*$/"\2\3" "\4"/p'\
11
sed -n 's/^<h[1-4][^>]*>(<img [^>]*title="([^"]*):"[^>]*>|([[:alpha:] ]+):)? *<a href="#[^"]+" class="wiki-page">([^<]+).*$/"\2\3" "\4"/p'\
12 12
|while read -r line; do
13 13
    eval set -- $line # split to $@
14 14
    type="$1" name="$2"

Also available in: Unified diff