diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-27 08:57:32 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-27 12:39:47 +0100 |
commit | 3268c0c89847cc9fa1eccdcd7eeef1731f3d9a23 (patch) | |
tree | 5cc54443712bce7ffd6c6c364118324ed3eacba5 | |
parent | 0da26e8bcd12592ffa61136fd922464fe34ba2e6 (diff) |
html: strip "the " from titles
-rwxr-xr-x | build.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -65,6 +65,9 @@ def write_features(f, feature_data): data['url'] = url data['filename'] = feat + if data['title'].startswith('the '): + data['title'] = data['title'][len('the '):] + if key in features: data['title'] = data['flag'].replace('_', ' ') |