Skip to content

Commit 6ea32de

Browse files
committed
Formatting fix
1 parent 0045878 commit 6ea32de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/core/StelObject.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ public slots:
568568
//! Narration version of getMagnitudeInfoString().
569569
virtual QString getMagnitudeNarration(const StelCore *core, const InfoStringGroup& flags, const int decimals=1, const float& magOffset=0.f) const;
570570

571-
//! Format B-V color index information
571+
//! Format B-V color index information for InfoString (including trailing linebreak).
572572
static QString getB_VInfoString(float b_v);
573+
//! Format B-V color index information for Narration (excluding trailing line stop to allow longer combinations).
573574
static QString getB_VNarration(float b_v);
574575

575576
//! Add a section to the InfoString with just horizontal data for the Sun and Moon, when observed from Earth.

src/core/modules/StarWrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ QString StarWrapper1::getInfoString(const StelCore *core, const InfoStringGroup&
266266

267267
if (flags&Extra) // B-V, variable range
268268
{
269-
oss << getB_VInfoString(getBV()) << "<br />";
269+
oss << getB_VInfoString(getBV());
270270
oss << getVariabilityRangeInfoString(core, flags);
271271
}
272272

@@ -604,7 +604,7 @@ QString StarWrapper2::getInfoString(const StelCore *core, const InfoStringGroup&
604604

605605
if (flags&Extra)
606606
{
607-
oss << getB_VInfoString(getBV()) << "<br />";
607+
oss << getB_VInfoString(getBV());
608608
oss << getVariabilityRangeInfoString(core, flags);
609609
}
610610

@@ -750,7 +750,7 @@ QString StarWrapper3::getInfoString(const StelCore *core, const InfoStringGroup&
750750

751751
if (flags&Extra) // B-V, variable range
752752
{
753-
oss << getB_VInfoString(getBV()) << "<br />";
753+
oss << getB_VInfoString(getBV());
754754
oss << getVariabilityRangeInfoString(core, flags);
755755
}
756756

0 commit comments

Comments
 (0)