Latest news 2024-03-02: Ebook sale (3rd–9th March 2024): short story cybercrime fiction Unsocial Media free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99. For further details, see latest blog post.

Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 126🔗
Date: 2019-01-31 07:46:08
Status Open
Sign in if you want to bump this report.
Category datatool
Version 2.29
Summary Problems with \DTLsubstituteall

Sign in to subscribe to notifications about this report.


seems the command \DTLsubstituteall of the package datatool does remove braces/pairs of matching catcode1/2-character-tokens where you wish to keep them.

The replacement text of a macro definition is formed by the sequence

When using \DTLsubstituteall for replacing each comma by a slash, you don't get
but you get:
The braces that surround all the phrases "InsideBraces..." get removed.

When replacing commas by slashes with the sequence

you don't get
but you get:
Only the braces that surround the single phrase "InsideBracesA" get removed.

Seems the behaviour of \DTLsubstituteall regarding the removal of braces cannot be predicted by just reading the datatool-documentation.


Download (0.99K)





All the braces are there there before the replacement:



All the braces are gone after the replacement:




All the braces are there there before the replacement:


%Let's replace all commas:


Only the first pair of braces is gone after the replacement:






Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.


You can use the following markup:


[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

You can use the Preview button to review your message formatting before submitting.

Page permalink: