Skip to content

Commit

Permalink
Abstract format nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Nov 22, 2023
1 parent 4545e49 commit 7d41bb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/paperinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ function abstract() {

/** @return int */
function abstract_format() {
return $this->format_of($this->abstract(), true);
return $this->format_of($this->abstract());
}

function edit_format() {
Expand Down
2 changes: 1 addition & 1 deletion src/papertable.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ function render_abstract(FieldRender $fr, PaperOption $o) {
. $this->papt("abstract", $o->title_html(), $extra)
. '<div class="pavb abstract';
if (!$match && ($format = $this->prow->format_of($html))) {
$fr->value .= ' need-format" data-format="' . $format . '">' . $html;
$fr->value .= " need-format\" data-format=\"{$format}\">{$html}";
} else {
$fr->value .= ' format0">' . Ht::format0_html($html);
}
Expand Down
1 change: 1 addition & 0 deletions stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,7 @@ tr.plx {
display: flex;
align-items: baseline;
margin-left: 1.5rem;
margin-right: 0.5rem;
}
.plet {
font-size: inherit;
Expand Down

0 comments on commit 7d41bb8

Please sign in to comment.