diff options
author | Michal Minar <miminar@redhat.com> | 2013-09-13 09:47:40 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-09-13 09:47:40 +0200 |
commit | 8d0862c14d10cb9ff5e8b4e669ea3526b6edcbd8 (patch) | |
tree | 706c01bd96b156340282f2b831053e21f7c2df0a /tools | |
parent | 9e6ae8c53846bde8f5814bd655cd9f17e441026e (diff) | |
download | openlmi-scripts-8d0862c14d10cb9ff5e8b4e669ea3526b6edcbd8.tar.gz openlmi-scripts-8d0862c14d10cb9ff5e8b4e669ea3526b6edcbd8.tar.xz openlmi-scripts-8d0862c14d10cb9ff5e8b4e669ea3526b6edcbd8.zip |
fixed regexps in doc utility script
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/help2rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/help2rst b/tools/help2rst index 452109a..c575a63 100755 --- a/tools/help2rst +++ b/tools/help2rst @@ -110,8 +110,8 @@ def process_usage_line(line): # '<arg>' 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-z\A-Z][\-a-zA-Z]*)\s', r' **\1** ', line) - line = re.sub(r'\s([a-z\A-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-Z][a-zA-Z-]*)\s', r' **\1** ', line) # There must be one line space before the option print |