diff options
author | Benjamin Chrétien | 2014-02-13 15:29:07 +0100 |
---|---|---|
committer | Benjamin Chrétien | 2015-06-20 02:25:12 +0900 |
commit | 4c886f4e87aecc655b57fb9fd0bbf140ab2cfe9b (patch) | |
tree | 680b53a7e5102152b5f26796e19211824ed4f5d4 | |
parent | 1dc828ea20fc92b40f7488263f3038a0e306f362 (diff) | |
download | aur-4c886f4e87aecc655b57fb9fd0bbf140ab2cfe9b.tar.gz |
Remove tabs from package descriptions.
-rwxr-xr-x | import_catkin_packages.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/import_catkin_packages.py b/import_catkin_packages.py index e68e146a227d..79e44aac7fa4 100755 --- a/import_catkin_packages.py +++ b/import_catkin_packages.py @@ -35,6 +35,8 @@ class PackageBase(object): self.description = re.sub('<[^<]+?>', '', package.description) # Put it on one line to motivate packagers to make shorter descriptions self.description = re.sub('\n', ' ', self.description) + # Convert tabs to spaces + self.description = re.sub('\t', ' ', self.description) # Multiple consecutive spaces turned into one self.description = re.sub('([ ]+)', ' ', self.description) # Only take the first sentence (keep short description) |