Author: sveinung Date: Thu Aug 27 12:19:47 2015 New Revision: 29694 URL: http://svn.gna.org/viewcvs/freeciv?rev=29694&view=rev Log: freeciv-manual: Wiki format page headline
Nit pick. (I don't think the headline is copied to the Wiki) See patch #6293 Modified: trunk/tools/civmanual.c Modified: trunk/tools/civmanual.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/tools/civmanual.c?rev=29694&r1=29693&r2=29694&view=diff ============================================================================== --- trunk/tools/civmanual.c (original) +++ trunk/tools/civmanual.c Thu Aug 27 12:19:47 2015 @@ -87,6 +87,8 @@ #define HEADER "<html><head><link rel=\"stylesheet\" type=\"text/css\" "\ "href=\"manual.css\"/><meta http-equiv=\"Content-Type\" "\ "content=\"text/html; charset=UTF-8\"/></head><body>\n\n" +#define TITLE_BEGIN "<h1>" +#define TITLE_END "</h1>" #define SECTION_BEGIN "<h3>" #define SECTION_END "</h3>" #define IMAGE_BEGIN "<img src=\"" @@ -96,6 +98,8 @@ #else /* MANUAL_USE_HTML */ #define FILE_EXT "mediawiki" #define HEADER " " +#define TITLE_BEGIN "=" +#define TITLE_END "=" #define SECTION_BEGIN "===" #define SECTION_END "===" #define IMAGE_BEGIN "[[Image:" @@ -191,7 +195,8 @@ switch (manuals) { case MANUAL_SETTINGS: - fprintf(doc, _("<h1>Freeciv %s server options</h1>\n\n"), VERSION_STRING); + fprintf(doc, _("%sFreeciv %s server options%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); settings_iterate(SSET_ALL, pset) { char buf[256]; const char *sethelp; @@ -272,8 +277,8 @@ break; case MANUAL_COMMANDS: - fprintf(doc, _("<h1>Freeciv %s server commands</h1>\n\n"), - VERSION_STRING); + fprintf(doc, _("%sFreeciv %s server commands%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); for (i = 0; i < CMD_NUM; i++) { const struct command *cmd = command_by_number(i); @@ -308,8 +313,8 @@ break; case MANUAL_TERRAIN: - fprintf(doc, _("<h1>Freeciv %s terrain help</h1>\n\n"), - VERSION_STRING); + fprintf(doc, _("%sFreeciv %s terrain help%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); fprintf(doc, "<table><tr bgcolor=#9bc3d1><th colspan=2>%s</th>", _("Terrain")); fprintf(doc, "<th>F/P/T</th><th>%s</th>", _("Resources")); fprintf(doc, "<th>%s<br/>%s</th>", _("Move cost"), _("Defense bonus")); @@ -421,9 +426,11 @@ case MANUAL_BUILDINGS: case MANUAL_WONDERS: if (manuals == MANUAL_BUILDINGS) { - fprintf(doc, _("<h1>Freeciv %s buildings help</h1>\n\n"), VERSION_STRING); + fprintf(doc, _("%sFreeciv %s buildings help%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); } else { - fprintf(doc, _("<h1>Freeciv %s wonders help</h1>\n\n"), VERSION_STRING); + fprintf(doc, _("%sFreeciv %s wonders help%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); } fprintf(doc, "<table>\n<tr bgcolor=#9bc3d1><th colspan=2>%s</th>" @@ -478,7 +485,8 @@ case MANUAL_GOVS: /* FIXME: this doesn't resemble the wiki manual at all. */ - fprintf(doc, _("<h1>Freeciv %s governments help</h1>\n\n"), VERSION_STRING); + fprintf(doc, _("%sFreeciv %s governments help%s\n\n"), TITLE_BEGIN, + VERSION_STRING, TITLE_END); governments_iterate(pgov) { char buf[64000]; fprintf(doc, "%s%s%s\n\n", SECTION_BEGIN, @@ -490,8 +498,8 @@ case MANUAL_UNITS: /* FIXME: this doesn't resemble the wiki manual at all. */ - fprintf(doc, _("<h1>Freeciv %s unit types help</h1>\n\n"), - VERSION_STRING); + fprintf(doc, _("%sFreeciv %s unit types help%s\n\n"), + TITLE_BEGIN, VERSION_STRING, TITLE_END); unit_type_iterate(putype) { char buf[64000]; fprintf(doc, "%s%s%s\n\n", SECTION_BEGIN, _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits