lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d30e9b1 9/9: Make {{ContractNameCap}} availab


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d30e9b1 9/9: Make {{ContractNameCap}} available for all formats
Date: Wed, 12 Jun 2019 12:53:01 -0400 (EDT)

branch: master
commit d30e9b1fa6535f4bdda27e3e94eca5461c2aafbe
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Make {{ContractNameCap}} available for all formats
---
 pdf_command_wx.cpp | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 8c5105e..92b3975 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -970,6 +970,19 @@ class pdf_illustration : protected html_interpolator, 
protected pdf_writer_wx
             ,invar.UWClass == "Rated"
             );
 
+        // Define variables specific to this illustration.
+        if(!invar.ContractName.empty())
+            {
+            std::string s = invar.ContractName;
+            for(auto& c : s)
+                {
+                c = lmi_tolower(c);
+                }
+            s[0] = lmi_toupper(s[0]);
+
+            add_variable("ContractNameCap", s);
+            }
+
         // PDF !! Conditions of this ilk should become distinct entities in
         // the product files--or in this case, eliminated altogether: this
         // condition is used only in one place, in a really silly way.
@@ -2846,19 +2859,6 @@ class pdf_illustration_finra : public pdf_illustration
     {
         auto const& invar = ledger.GetLedgerInvariant();
 
-        // Define variables specific to this illustration.
-        if(!invar.ContractName.empty())
-            {
-            std::string s = invar.ContractName;
-            for(auto& c : s)
-                {
-                c = lmi_tolower(c);
-                }
-            s[0] = lmi_toupper(s[0]);
-
-            add_variable("ContractNameCap", s);
-            }
-
         auto const& state_of_jurisdiction = invar.StateOfJurisdiction;
 
         add_variable



reply via email to

[Prev in Thread] Current Thread [Next in Thread]