~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/__init__.py

Merge cleanup into first-try

Show diffs side-by-side

added added

removed removed

Lines of Context:
882
882
def help_as_plain_text(text):
883
883
    """Minimal converter of reStructuredText to plain text."""
884
884
    import re
 
885
    # Remove the standalone code block marker
 
886
    text = re.sub(r"(?m)^\s*::\n\s*$", "", text)
885
887
    lines = text.splitlines()
886
888
    result = []
887
889
    for line in lines: