Skip to content

Commit

Permalink
Added a text wrapper for pulsar notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Oct 17, 2023
1 parent ec9e41d commit 902480c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Pulsars/src/Pulsar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ QString Pulsar::getInfoString(const StelCore* core, const InfoStringGroup& flags
oss << QString("%1 %2%3: %4 %5<br />").arg(flux, QString::number(1400), freq, QString::number(s1400, 'f', 2), sfd);

if (!notes.isEmpty())
oss << QString("%1: %2<br />").arg(q_("Notes"), getPulsarTypeInfoString(notes));
oss << StelUtils::wrapText(QString("%1: %2<br />").arg(q_("Notes"), getPulsarTypeInfoString(notes)));
}

oss << getSolarLunarInfoString(core, flags);
Expand Down Expand Up @@ -416,7 +416,7 @@ QString Pulsar::getPulsarTypeInfoString(QString pcode) const
out.append(q_("isolated neutron star with pulsed thermal X-ray emission but no detectable radio emission"));
}

return out.join(",<br />");
return out.join(", ");
}

void Pulsar::draw(StelCore* core, StelPainter *painter)
Expand Down

0 comments on commit 902480c

Please sign in to comment.