From 38be1e0bdd09a5a94bc9e9c3bdadd56023095a95 Mon Sep 17 00:00:00 2001 From: Radek Novacek Date: Thu, 23 Jan 2014 10:36:10 +0100 Subject: Allow having numbers on the Usage line --- tools/help2rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/help2rst b/tools/help2rst index 124b5bc..e75455a 100755 --- a/tools/help2rst +++ b/tools/help2rst @@ -106,12 +106,12 @@ def process_usage_line(line): # by [a-z] character. # I.e. 'partition-table' should be skipped, while '--option' should # match. - line = re.sub(r'(?' is italics line = re.sub(r'(<[^>]*>)', r'\\ *\1*\\ ', line) # words alone are bold, they can also contain a dash ('partition-table') - line = re.sub(r'\s([a-zA-Z][a-zA-Z-]*)\s', r' **\1** ', line) - line = re.sub(r'\s([a-zA-Z][a-zA-Z-]*)\s', r' **\1** ', line) + line = re.sub(r'\s([a-zA-Z0-9][a-zA-Z0-9-]*)\s', r' **\1** ', line) + line = re.sub(r'\s([a-zA-Z0-9][a-zA-Z0-9-]*)\s', r' **\1** ', line) # There must be one line space before the option print -- cgit