Skip to content

Commit

Permalink
Minor stylistic changes to credit entries
Browse files Browse the repository at this point in the history
 * Overrule any CSS clear properties set by the stylesheet since they do
   not play well with the page's use of a floated TOC.

 * Use em dashes instead of hyphens for entry comments.

 * Refer to the main contributors as Core Contributors instead of simply
   Contributors, and add a custom heading for localization entries so it
   doesn't become just "Core" after the folder name.

 * Additional styling on file paths.

[ci skip]
  • Loading branch information
irydacea authored and GregoryLundberg committed Nov 30, 2017
1 parent 8236350 commit c3d77c4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions data/tools/about_cfg_to_wiki
Expand Up @@ -75,12 +75,15 @@ __NOEDITSECTION__
In July 2003, '''David White''' released the first version of Wesnoth. Since
then, many people have joined the project, contributing in very different ways.
To make any changes to this list, please modify about.cfg in the repo or ask any
developer to do it for you.
To make any changes to this list, please modify
<code class="noframe">about.cfg</code> in the repo or ask any developer to do
it for you.
""".lstrip())
for path, sections in chapters:
if path == "data/core/about.cfg":
print("== Contributors ==")
print("== Core Contributors ==")
elif path == "data/core/about_i18n.cfg":
print("== Translations ==")
else:
slash1 = path.rfind("/")
slash2 = path.rfind("/", 0, slash1)
Expand All @@ -92,10 +95,10 @@ developer to do it for you.
print("=== %s ===" % section.title)
for name, comment, wikiuser, email in section.lines:
if name in ("*", "•"):
print("<hr>")
print("<hr style='clear:none'>")
continue
if comment:
comment = " - " + comment
comment = " &#8212; " + comment
if wikiuser:
# If a wiki user is given, the nickname is turned into a
# wiki link, or else the whole name.
Expand Down

0 comments on commit c3d77c4

Please sign in to comment.