git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9a4a3
)
apl: omit title attribute if no description
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 3 Mar 2015 22:53:07 +0000
(23:53 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 9 Jun 2015 03:43:43 +0000
(
05:43
+0200)
apl.plp
patch
|
blob
|
history
diff --git
a/apl.plp
b/apl.plp
index 6fc7cad492dceb490cf09383ac5f295a6debee06..478533f1622e872da122bd4d70437a27a1ece2d5 100644
(file)
--- a/
apl.plp
+++ b/
apl.plp
@@
-51,8
+51,9
@@
for my $op (@ops) {
[defined $html ? 'l4' : $ascii ? 'l5' : 'l1', $html // "#$codepoint"],
);
printf(
- defined $_ ? '<td title="%2$s">%s' : '<td class="Xi">',
- map { EscapeHTML($_) } split /\n/, $_, 2
+ defined $_ ? '<td%s>%s' : '<td class=Xi>',
+ map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] }
+ [map { EscapeHTML($_) } split /\n/, $_, 2]
) for $monad, $dyad;
print "\n";
}