From 696e8a5fe6247f0349e3b3737a58ee182911eb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 4 Oct 2019 14:49:29 +0200 Subject: [PATCH] Version19.31.1 --- swad_changelog.h | 2 +- swad_table.c | 39 ++++++++++++++++++++++++++------------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 0593f6f7b..132982290 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -493,7 +493,7 @@ ps2pdf source.ps destination.pdf /* // TODO: Perico: poner un candado de bloqueo de creación/edición de proyectos (por ejemplo en asignaturas obsoletas) - Version 19.31.1: Oct 04, 2019 Code refactoring in HTML tables. (247022 lines) + Version 19.31.1: Oct 04, 2019 Code refactoring in HTML tables. (247035 lines) Version 19.31 : Oct 04, 2019 Code refactoring in HTML tables. (246967 lines) Version 19.30.6: Oct 03, 2019 Code refactoring in HTML tables. (246928 lines) Version 19.30.5: Oct 03, 2019 Code refactoring in HTML tables. (246922 lines) diff --git a/swad_table.c b/swad_table.c index 0b32d8de6..ad34aca88 100644 --- a/swad_table.c +++ b/swad_table.c @@ -78,7 +78,8 @@ void Tbl_StartTableClass (const char *fmt,...) Lay_NotEnoughMemoryExit (); /***** Print HTML *****/ - fprintf (Gbl.F.Out,"",Class); + fprintf (Gbl.F.Out, + "
",Class); free ((void *) Class); } @@ -92,7 +93,8 @@ void Tbl_StartTableClass (const char *fmt,...) void Tbl_StartTablePadding (unsigned CellPadding) { if (CellPadding) - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out, + "
", CellPadding); // CellPadding must be 0, 1, 2, 5 or 10 else Tbl_StartTable (); @@ -100,13 +102,15 @@ void Tbl_StartTablePadding (unsigned CellPadding) void Tbl_StartTable (void) { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out, + "
"); } void Tbl_StartTableCenterPadding (unsigned CellPadding) { if (CellPadding) - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out, + "
", CellPadding); // CellPadding must be 0, 1, 2, 5 or 10 else Tbl_StartTableCenter (); @@ -114,13 +118,15 @@ void Tbl_StartTableCenterPadding (unsigned CellPadding) void Tbl_StartTableCenter (void) { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out, + "
"); } void Tbl_StartTableWidePadding (unsigned CellPadding) { if (CellPadding) - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out, + "
", CellPadding); // CellPadding must be 0, 1, 2, 5 or 10 else Tbl_StartTableWide (); @@ -128,13 +134,15 @@ void Tbl_StartTableWidePadding (unsigned CellPadding) void Tbl_StartTableWide (void) { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out, + "
"); } void Tbl_StartTableWideMarginPadding (unsigned CellPadding) { if (CellPadding) - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out, + "
", CellPadding); // CellPadding must be 0, 1, 2, 5 or 10 else Tbl_StartTableWideMargin (); @@ -142,22 +150,26 @@ void Tbl_StartTableWideMarginPadding (unsigned CellPadding) void Tbl_StartTableWideMargin (void) { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out, + "
"); } void Tbl_EndTable (void) { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out, + ""); } void Tbl_StartRow (void) { - Tbl_StartRow (); + fprintf (Gbl.F.Out, + ""); } void Tbl_EndRow (void) { - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out, + ""); } void Tbl_PutEmptyCells (unsigned NumColumns) @@ -167,6 +179,7 @@ void Tbl_PutEmptyCells (unsigned NumColumns) for (NumCol = 0; NumCol < NumColumns; NumCol++) - fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out, + "", Gbl.RowEvenOdd); }