Skip to content

Commit

Permalink
Cosmetic fixes for extra info about DSO/nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Oct 17, 2023
1 parent 257508b commit 11f8bd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 << StelUtils::wrapText(QString("%1: %2<br />").arg(q_("Notes"), getPulsarTypeInfoString(notes)));
oss << StelUtils::wrapText(QString("%1: %2").arg(q_("Notes"), getPulsarTypeInfoString(notes))) << "<br />";
}

oss << getSolarLunarInfoString(core, flags);
Expand Down
4 changes: 2 additions & 2 deletions src/core/modules/Nebula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ QString Nebula::getInfoString(const StelCore *core, const InfoStringGroup& flags
if (!discoverer.isEmpty())
oss << QString("%1: %2 (%3)").arg(q_("Discoverer"), discoverer, StelUtils::localeDiscoveryDateString(discoveryYear)) << "<br />";
if (!getMorphologicalTypeDescription().isEmpty())
oss << QString("%1: %2.").arg(q_("Morphological description"), getMorphologicalTypeDescription()) << "<br />";
oss << StelUtils::wrapText(QString("%1: %2.").arg(q_("Morphological description"), getMorphologicalTypeDescription())) << "<br />";
}

oss << getSolarLunarInfoString(core, flags);
Expand Down Expand Up @@ -1536,7 +1536,7 @@ QString Nebula::getMorphologicalTypeDescription(void) const
rtx << qc_("undocumented reflection nebulae", "Reflection Nebulae Classification");
break;
}
r = rtx.join(",<br />");
r = rtx.join(", ");
}


Expand Down
2 changes: 1 addition & 1 deletion src/core/modules/NomenclatureItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ QString NomenclatureItem::getInfoString(const StelCore* core, const InfoStringGr
oss << QString("%1: %2°<br/>").arg(q_("Solar altitude"), QString::number(getSolarAltitude(core), 'f', 1));

if (!origin.isEmpty())
oss << StelUtils::wrapText(QString("%1: %2<br/>").arg(q_("Origin of name"), qc_(origin, "origin")));
oss << StelUtils::wrapText(QString("%1: %2").arg(q_("Origin of name"), qc_(origin, "origin"))) << "<br/>";

// DEBUG output. This should help defining valid criteria for selection priority.
// oss << QString("Planet angular size (semidiameter!): %1''<br/>").arg(QString::number(planet->getAngularSize(core)*3600.));
Expand Down

0 comments on commit 11f8bd7

Please sign in to comment.