From 17f255aac82a420df975ff3e98596fc03a2497c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sat, 26 Oct 2019 12:25:27 +0200 Subject: [PATCH] Version19.44.3 --- css/{swad19.44.2.css => swad19.44.3.css} | 11 ++++- swad_HTML.c | 55 +++++++++++++++++++++--- swad_HTML.h | 1 + swad_MFU.c | 4 +- swad_banner.c | 2 +- swad_changelog.h | 5 +-- swad_chat.c | 2 +- swad_course.c | 2 +- swad_date.c | 2 +- swad_enrolment.c | 6 +-- swad_file_browser.c | 2 +- swad_forum.c | 4 +- swad_info.c | 3 +- swad_link.c | 2 +- swad_menu.c | 4 +- swad_privacy.c | 2 +- swad_profile.c | 4 +- swad_project.c | 2 +- swad_report.c | 23 +++++----- swad_survey.c | 2 +- swad_syllabus.c | 2 +- swad_tab.c | 4 +- swad_test.c | 4 +- swad_timeline.c | 23 +++++----- swad_user.c | 3 +- 25 files changed, 109 insertions(+), 65 deletions(-) rename css/{swad19.44.2.css => swad19.44.3.css} (99%) diff --git a/css/swad19.44.2.css b/css/swad19.44.3.css similarity index 99% rename from css/swad19.44.2.css rename to css/swad19.44.3.css index 46396f34..8247d8ed 100644 --- a/css/swad19.44.2.css +++ b/css/swad19.44.3.css @@ -74,7 +74,7 @@ form } address { - font-style: normal; + font-style:normal; } /*********************** Text decoration of links ****************************/ @@ -2237,6 +2237,15 @@ a:hover img.CENTRE_PHOTO_SHOW height:25px; } +.LIST_I_MUST_READ + { + display:inline-block; + padding:0; + margin:12px 0; + text-align:left; + vertical-align:middle; + } + /******************************* File browsers *******************************/ .FILENAME { diff --git a/swad_HTML.c b/swad_HTML.c index 69242207..4314f342 100644 --- a/swad_HTML.c +++ b/swad_HTML.c @@ -60,6 +60,7 @@ static unsigned HTM_TR_NestingLevel = 0; static unsigned HTM_TH_NestingLevel = 0; static unsigned HTM_TD_NestingLevel = 0; static unsigned HTM_DIV_NestingLevel = 0; +static unsigned HTM_UL_NestingLevel = 0; /*****************************************************************************/ /***************************** Private prototypes ****************************/ @@ -76,6 +77,8 @@ static void HTM_TD_BeginWithoutAttr (void); static void HTM_DIV_BeginWithoutAttr (void); +static void HTM_UL_BeginWithoutAttr (void); + /*****************************************************************************/ /******************************* Start/end table *****************************/ /*****************************************************************************/ @@ -412,7 +415,7 @@ static void HTM_TD_BeginWithoutAttr (void) void HTM_TD_End (void) { - if (HTM_TD_NestingLevel == 0) // No TH open + if (HTM_TD_NestingLevel == 0) // No TD open Ale_ShowAlert (Ale_ERROR,"Trying to close unopened TD."); fprintf (Gbl.F.Out,""); @@ -490,12 +493,12 @@ static void HTM_DIV_BeginWithoutAttr (void) void HTM_DIV_End (void) { - if (HTM_DIV_NestingLevel == 0) // No TH open + if (HTM_DIV_NestingLevel == 0) // No DIV open Ale_ShowAlert (Ale_ERROR,"Trying to close unopened DIV."); fprintf (Gbl.F.Out,""); - HTM_TD_NestingLevel--; + HTM_DIV_NestingLevel--; } /*****************************************************************************/ @@ -543,13 +546,51 @@ void HTM_SECTION_End (void) /*****************************************************************************/ /****************************** Unordered lists ******************************/ /*****************************************************************************/ -/* -void HTM_UL_Begin (const char *SectionId) + +void HTM_UL_Begin (const char *fmt,...) { - fprintf (Gbl.F.Out,"