From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-91-241.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.0 required=3.0 tests=FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Parameterised 'Image Attributes Date: Tue, 26 Sep 2023 20:15:44 +1000 Organization: A noiseless patient Spider Message-ID: References: <7edf8281-4c8b-414d-8b60-e0a6fc851d03n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 26 Sep 2023 10:14:33 -0000 (UTC) Injection-Info: dont-email.me; posting-host="fbc0411b2d9793e7eb90390760b56604"; logging-data="2590068"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wIB+pyPk3uzXWqmAFZNg4IycB0oBrb50=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Qt510IfMXyzJlIRGo8PUigyxFkk= Content-Language: en-US In-Reply-To: <7edf8281-4c8b-414d-8b60-e0a6fc851d03n@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65730 List-Id: On 26/9/23 15:47, Vadim Godunko wrote: > On Saturday, September 23, 2023 at 1:59:20 PM UTC+4, Rod Kay wrote: >> >> I've been using 'Gnat.formatted_Output' which I've found quite >> useful. Unfortunately, it seems to be a little buggy with its formatting. > > You can take a look at VSS's Virtual_String_Templates and Formatters, see > > https://github.com/AdaCore/VSS/blob/master/source/text/vss-strings-templates.ads > https://github.com/AdaCore/VSS/blob/master/source/text/vss-strings-formatters.ads > > and an example of its use > > https://github.com/AdaCore/gnatdoc/blob/3e94448ac57270caf4b4502f208f78e1d51da2b2/source/gnatdoc-messages.adb#L130 That looks really good! I'll try it out asap. Thank you Vadim.