diff options
-rwxr-xr-x | compile_emoji_sedstring.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compile_emoji_sedstring.sh b/compile_emoji_sedstring.sh index ef22247..2fb2f6d 100755 --- a/compile_emoji_sedstring.sh +++ b/compile_emoji_sedstring.sh @@ -1,7 +1,10 @@ #!/bin/sh +SIZE=24px +STYLE="margin-bottom: -4px;" + cd public/emoji; for EMOJI in *; do BASENAME=${EMOJI%.*} - echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" height=\\\"24px\\\" style=\\\"margin-bottom: -4px\\\">|g; " + echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" alt=\\\"${BASENAME}-icon\\\" height=\\\"${SIZE}\\\" width=\\\"${SIZE}\\\" style=\\\"${STYLE}\\\">|g; " done |