Bug Tracker RSS feed

ID 20🔗
Date: 2013-01-18 11:12:26
Status Closed (Fixed)
Category datatool
Version 2.13
Summary Error if \DTLnewdbentry's third argument is an empty macro
Cross Ref 18

Return to Search Results

Sign in to subscribe to notifications about this report.

Description

Hi,

the bug nr 18 (xkeyval incompatibility) has in fact nothing to do with xkeyval (sorry).

It appears that if \DTLnewdbentry's third argument (value of the identifier key) is an empty macro, the following error occurs:

Runaway argument?
\@nil \ifnum \@dtl@numgrpsepcount >-1\relax \if@dtl@numgrpsep \ifnum \ETC.
! File ended while scanning use of \@dtl@checknumericalstart.

The joind MCE shows the problem:

  \DTLnewdbentry{mydata}{Surname}{\test}%
is OK as long as \test is a non-empty macro.

MWE

Download (297B)

\documentclass{article}
\usepackage{datatool}
%
\newcommand{\test}{}
%
\begin{document}
%
\DTLnewdb{mydata}%
%
\renewcommand{\test}{Doe}
\DTLnewrow{mydata}%
\DTLnewdbentry{mydata}{Surname}{\test}%
%
\renewcommand{\test}{}
\DTLnewrow{mydata}%
\DTLnewdbentry{mydata}{Surname}{\test}%
\end{document}

Evaluation

This is now fixed in version 2.14.

Comments

0 comments.


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. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

Comment:


You can use the following markup:

Block:

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

In line:

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

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

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

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

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=20

Return to Search Results