lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 712f0e7 2/2: Demonstrate pilcrows-and-guillem


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 712f0e7 2/2: Demonstrate pilcrows-and-guillemets '.policy' syntax
Date: Thu, 8 Aug 2019 20:53:58 -0400 (EDT)

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

    Demonstrate pilcrows-and-guillemets '.policy' syntax
    
    Pilcrows become <br>; guillemets become <b>...</b>; and empty <p></p>
    paragraphs are removed.
    
    This commit should be reverted after acceptance testing.
    
    Test case:
    
      File | New | Illustration
      Policy: "sample2ipp"
      OK
      File | Print to PDF
    
    On page 8 of 10:
    
     - The empty paragraphs added to the MST file are removed. They aren't
    empty strings surrounded by paragraph spacing--instead, they're not
    present at all. The PDF output is indistinguishable from one regenerated
    after manually editing the empty paragraphs out of the MST file.
    
     - The following new text appears as described in the notes below:
    
    [0] Guaranteed mortality column definition:
    [1] {InsCoName} guarantees that this {ContractName}'s mortality charges
    will never exceed the applicable CSO mortality tables.
    [2] And here's another line (coded with a single pilcrow).
    [3] And here's another paragraph (coded with a double pilcrow).
    
    0: All in boldface, on a line of its own. (1-3 are not bold.)
    1: Starts on a new line. This line would wrap if it were long enough.
    The two substituted variables are shown in single curly braces, because
    that's how they're defined for this product.
    2: Starts on a new line, as though the carriage-return arm on a manual
    typewriter had been operated once before this line.
    3: Starts on a new line following a blank: as for 2 above, but working
    the carriage-return arm twice before starting this line.
    
    Retesting with any other product should produce the same PDF with or
    without this commit.
---
 product_data.cpp       |  8 ++++++++
 reg_d_indiv_notes1.mst | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/product_data.cpp b/product_data.cpp
index 7482b32..6604628 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -764,6 +764,14 @@ sample2ipp::sample2ipp()
          " who entered, that there were few of the company bold enough to set"
          " foot within its precincts at all."
         );
+    // Experimental: 'ExchangeChargeFootnote0' is otherwise disused.
+    item("ExchangeChargeFootnote0") =
+        "«Guaranteed mortality column definition:»¶{{InsCoName}}"
+        " guarantees that this {{ContractName}}'s mortality charges will"
+        " never exceed the applicable CSO mortality tables."
+        "¶And here's another line (coded with a single pilcrow)."
+        "¶¶And here's another paragraph (coded with a double pilcrow)."
+        ;
 }
 
 sample2xyz::sample2xyz()
diff --git a/reg_d_indiv_notes1.mst b/reg_d_indiv_notes1.mst
index 6a94a8e..a06842d 100644
--- a/reg_d_indiv_notes1.mst
+++ b/reg_d_indiv_notes1.mst
@@ -105,9 +105,49 @@ willing to represent as such to {{InsCoShortName}}.
 </p>
 
 <p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
+<p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
+<p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
+<p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
+<p>
 <b>End of Year Age:</b> &nbsp; {{AttainedAgeFootnote}}
 </p>
 
+{{!
+    Experimental.
+
+    'ExchangeChargeFootnote0' is otherwise disused; its definition is
+    nonempty only for product 'sample2ipp'.
+
+    The following 'ExchangeChargeFootnote0' paragraph should print
+    something for 'sample2ipp' only. For any other product, it should
+    be suppressed, as though it weren't present at all, thus taking no
+    vertical space.
+}}
+
+<p>
+{{ExchangeChargeFootnote0}}
+</p>
+
+<p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
+<p>
+{{! Experimental: This empty paragraph should be suppressed. }}
+</p>
+
 <p>
 <b>Investment Income:</b> &nbsp; {{InvestmentIncomeFootnote}}
 </p>



reply via email to

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