~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/__init__.py

(jelmer) Document the behaviour with regards to special characters in URLs.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
 
271
271
would refer to ``/home/remote/myproject/trunk``.
272
272
 
273
 
Many commands that accept URLs also accept location aliases too.  See
274
 
::doc:`location-alias-help`.
 
273
Many commands that accept URLs also accept location aliases too.
 
274
See :doc:`location-alias-help` and :doc:`url-special-chars-help`.
275
275
"""
276
276
 
277
277
    return out
778
778
                        'Aliases for remembered locations')
779
779
topic_registry.register('log-formats', _load_from_file,
780
780
                        'Details on the logging formats available')
 
781
topic_registry.register('url-special-chars', _load_from_file,
 
782
                        'Special character handling in URLs')
781
783
 
782
784
 
783
785
# Register concept topics.
898
900
        elif line.endswith('::'):
899
901
            line = line[:-1]
900
902
        # Map :doc:`xxx-help` to ``bzr help xxx``
901
 
        line = re.sub(":doc:`(.+)-help`", r'``bzr help \1``', line)
 
903
        line = re.sub(":doc:`(.+?)-help`", r'``bzr help \1``', line)
902
904
        result.append(line)
903
905
    return "\n".join(result) + "\n"