Skip to content

Commit

Permalink
Attributes holding text for eventual output should (fall-back to) toA…
Browse files Browse the repository at this point in the history
…ttribute, not toString
  • Loading branch information
brucemiller committed Dec 31, 2024
1 parent 2edb87b commit ff55b73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/LaTeXML/Engine/LaTeX.pool.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -1211,9 +1211,9 @@ DefConstructor('\lx@author@prefix', sub {
my $i = scalar(@{ $document->findnodes('//ltx:creator[@role="author"]') });
if ($i <= 1) { }
elsif ($i == $nauthors) {
$document->setAttribute($node, before => ToString(Digest(T_CS('\lx@author@conj')))); }
$document->setAttribute($node, before => Digest(T_CS('\lx@author@conj'))); }
else {
$document->setAttribute($node, before => ToString(Digest(T_CS('\lx@author@sep')))); }
$document->setAttribute($node, before => Digest(T_CS('\lx@author@sep'))); }
});

DefMacro('\@author', '\@empty');
Expand Down Expand Up @@ -4376,8 +4376,8 @@ DefConstructor('\@@bibref Semiverbatim Semiverbatim {}{}',
"<ltx:bibref show='#1' bibrefs='#bibrefs' inlist='#bibunit'"
. " separator='#separator' yyseparator='#yyseparator'>#3#4</ltx:bibref>",
properties => sub { (bibrefs => CleanBibKey($_[2]),
separator => ToString(Digest(LookupValue('CITE_SEPARATOR'))),
yyseparator => ToString(Digest(LookupValue('CITE_YY_SEPARATOR'))),
separator => Digest(LookupValue('CITE_SEPARATOR')),
yyseparator => Digest(LookupValue('CITE_YY_SEPARATOR')),
bibunit => LookupValue('CITE_UNIT')); });

# Simple container for any phrases used in the bibref
Expand Down

0 comments on commit ff55b73

Please sign in to comment.