Skip to content

Commit 8c2ba5d

Browse files
committed
Minor reformatting.
1 parent 2559eb7 commit 8c2ba5d

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/templates_parser-filter.adb

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -476,18 +476,19 @@ package body Filter is
476476
use type Strings.Maps.Character_Set;
477477
package L1 renames Ada.Characters.Latin_1;
478478

479-
Result : String (S'Range);
480-
481-
Non_ASCII : constant String
482-
:= (L1.Space, L1.LC_E_Acute, L1.LC_E_Grave, L1.LC_E_Circumflex,
483-
L1.LC_I_Circumflex, L1.LC_I_Diaeresis, L1.LC_A_Grave,
484-
L1.LC_O_Circumflex, L1.LC_C_Cedilla);
479+
Non_ASCII : constant String :=
480+
(L1.Space, L1.LC_E_Acute, L1.LC_E_Grave,
481+
L1.LC_E_Circumflex, L1.LC_I_Circumflex,
482+
L1.LC_I_Diaeresis, L1.LC_A_Grave,
483+
L1.LC_O_Circumflex, L1.LC_C_Cedilla);
485484

486485
Clean_Set : constant Strings.Maps.Character_Set :=
487486
Strings.Maps.Constants.Letter_Set
488487
or Strings.Maps.Constants.Decimal_Digit_Set
489488
or Strings.Maps.To_Set (Non_ASCII);
490489

490+
Result : String (S'Range);
491+
491492
begin
492493
Check_Null_Parameter (P);
493494

@@ -1533,8 +1534,7 @@ package body Filter is
15331534
function Replace
15341535
(S : String;
15351536
C : not null access Filter_Context;
1536-
P : Parameter_Data := No_Parameter) return String
1537-
is
1537+
P : Parameter_Data := No_Parameter) return String is
15381538
begin
15391539
return Replace_One_Or_All
15401540
(S, P, C.Translations, C.I_Parameters, One => True);
@@ -1547,8 +1547,7 @@ package body Filter is
15471547
function Replace_All
15481548
(S : String;
15491549
C : not null access Filter_Context;
1550-
P : Parameter_Data := No_Parameter) return String
1551-
is
1550+
P : Parameter_Data := No_Parameter) return String is
15521551
begin
15531552
return Replace_One_Or_All
15541553
(S, P, C.Translations, C.I_Parameters, One => False);

templates_parser.gpr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Templates Parser --
33
-- --
4-
-- Copyright (C) 1999-2017, AdaCore --
4+
-- Copyright (C) 1999-2022, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it --
77
-- under terms of the GNU General Public License as published by the --
@@ -30,7 +30,7 @@ library project Templates_Parser is
3030
when others =>
3131
So_Ext := ".so";
3232
end case;
33-
33+
3434
for Source_Dirs use ("src");
3535

3636
for Object_Dir use TP_Shared.Build_Dir & "/obj";
@@ -39,7 +39,7 @@ library project Templates_Parser is
3939
for Library_Name use "templates_parser";
4040
for Library_Kind use TP_Shared.Library_Type;
4141
for Library_Version use "libtemplates_parser-" & TP_Shared.Version & So_Ext;
42-
42+
4343
case TP_Shared.Library_Type is
4444
when "relocatable" =>
4545
-- Put options like --as-needed before options like -l.

tp_shared.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Templates Parser --
33
-- --
4-
-- Copyright (C) 2008-2016, AdaCore --
4+
-- Copyright (C) 2008-2022, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it --
77
-- under terms of the GNU General Public License as published by the --

0 commit comments

Comments
 (0)