Merge lp:~franku/widelands-website/smiley-and-codeblock-enhancements into lp:widelands-website
Status: | Merged |
---|---|
Merged at revision: | 382 |
Proposed branch: | lp:~franku/widelands-website/smiley-and-codeblock-enhancements |
Merge into: | lp:widelands-website |
Diff against target: |
202 lines (+45/-23) 5 files modified
mainpage/templatetags/wl_markdown.py (+11/-7) media/css/base.css (+23/-5) media/css/wiki.css (+1/-1) pybb/util.py (+3/-1) settings.py (+7/-9) |
To merge this branch: | bzr merge lp:~franku/widelands-website/smiley-and-codeblock-enhancements |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Shevonar | Approve | ||
Review via email: mp+245742@code.launchpad.net |
Description of the change
This branch has following changes:
TOC: Background some brighter
CODEBLOCKS: Added dark background to pre- and code-tags.
SMILEYS: Correct ordering in settings.py; Text-Smileys are only replaced with images, if they aren't in a codeblock; Text-smileys are only replaced with images, if they're not inside a word (i.e. in "http://...") Please take a look at my code in function _insert_
QUOTING: I added a space after the ">". This will prevend a failure with smiley ":-))" which will otherwise become ">:-))" and therefor it will not be replaced with the correct image. This is related to the smiley_preescaping of the smiley ">:-)" (the only thing that needs preescaping and make trouble).
Some minor cleanups and some comments added.
See https:/
Your changes look fine. Just one question and an answer to your question in the code below.