Skip to content

Commit 5f14b9d

Browse files
committed
TeX::Interpreter::LaTeX::Package::epigraph: Add check for empty attribution.
1 parent b170289 commit 5f14b9d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/perl/TeX/Interpreter/LaTeX/Package/epigraph.pm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package TeX::Interpreter::LaTeX::Package::epigraph;
22

3-
# Copyright (C) 2022 American Mathematical Society
3+
use v5.26.0;
4+
5+
# Copyright (C) 2022, 2025 American Mathematical Society
46
#
57
# This program is free software: you can redistribute it and/or modify
68
# it under the terms of the GNU Affero General Public License as published by
@@ -29,10 +31,9 @@ package TeX::Interpreter::LaTeX::Package::epigraph;
2931
# USA
3032
# email: tech-support@ams.org
3133

32-
use strict;
3334
use warnings;
3435

35-
sub install ( $ ) {
36+
sub install {
3637
my $class = shift;
3738

3839
my $tex = shift;
@@ -57,7 +58,9 @@ __DATA__
5758
\startXMLelement{disp-quote}%
5859
\setXMLattribute{content-type}{epigraph}%
5960
#1\par
60-
\thisxmlpartag{attrib}#2\par
61+
\ifnum\strcmp{#2}{}=0\else
62+
\thisxmlpartag{attrib}#2\par
63+
\fi
6164
\endXMLelement{disp-quote}%
6265
\par
6366
}

0 commit comments

Comments
 (0)