[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6fe7458 5/9: Fix "annnual" in output
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6fe7458 5/9: Fix "annnual" in output |
Date: |
Wed, 29 Aug 2018 11:07:55 -0400 (EDT) |
branch: master
commit 6fe74584ab7d23a616e88f12fcb5f2702c32198c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Fix "annnual" in output
Changed {{ErModeLCWithArticle}} with this effect:
- annnual
+ an annual
---
ledger_pdf_generator_wx.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 344843e..74c4db0 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -2027,13 +2027,13 @@ class pdf_illustration_regular : public pdf_illustration
// Variable representing the premium payment frequency with the
// appropriate indefinite article preceding it, e.g. "an annual"
// or "a monthly".
- auto const mode0 = invar.InitErMode;
+ std::string mode0 = invar.InitErMode;
if(!mode0.empty())
{
- auto const mode0_first = lmi_tolower(mode0[0]);
+ mode0[0] = lmi_tolower(mode0[0]);
add_variable
("ErModeLCWithArticle"
- ,(strchr("aeiou", mode0_first) ? "an" : "a") + mode0.substr(1)
+ ,(strchr("aeiou", mode0[0]) ? "an " : "a ") + mode0
);
}
- [lmi-commits] [lmi] master updated (34570c6 -> 5930d89), Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 87d4f89 1/9: Fix commas and spacing in some illustration headers, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 08ce595 2/9: Move {{StateMarketingImprimatur}} slightly northeastward, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 887b85f 6/9: Remove a stray , Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 738fa21 7/9: Add missing period, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 865fe55 4/9: Make all columns fit for an exotic product, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 8b9b020 3/9: Make an illustration column narrower, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 6fe7458 5/9: Fix "annnual" in output,
Greg Chicares <=
- [lmi-commits] [lmi] master 4916a46 8/9: Do not show lapse years on an 'naic' composite, Greg Chicares, 2018/08/29
- [lmi-commits] [lmi] master 5930d89 9/9: Add a line below 'dollar_units' for user-designed supplemental reports, Greg Chicares, 2018/08/29