build_emoji: Change sprite CSS files to use hyphens in names.

This is more consistent with our other names in emoji infra.
This commit is contained in:
Harshit Bansal
2018-08-25 23:46:23 +05:30
committed by Tim Abbott
parent 9bd56d0ce4
commit ec2ebd1cc9
6 changed files with 7 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ def generate_sprite_css_files(cache_path: str,
'pos_y': (emoji["sheet_y"] * 100) / 51,
}
SPRITE_CSS_PATH = os.path.join(cache_path, '%s_sprite.css' % (emojiset,))
SPRITE_CSS_PATH = os.path.join(cache_path, '%s-sprite.css' % (emojiset,))
sprite_css_file = open(SPRITE_CSS_PATH, 'w')
sprite_css_file.write(SPRITE_CSS_FILE_TEMPLATE % {'emojiset': emojiset,
'emoji_positions': emoji_positions,

View File

@@ -47,7 +47,7 @@ TABLE_ROW_TEMPLATE = """
EMOJI_LISTING_TEMPLATE = """
<html>
<head>
<link rel = "stylesheet" type = "text/css" href = "/static/generated/emoji/google_sprite.css" />
<link rel = "stylesheet" type = "text/css" href = "/static/generated/emoji/google-sprite.css" />
<style>
%(table_css)s
</style>