[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/nbsp_embedding ccb3c4b: Demonstrate nbsp embeddi
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/nbsp_embedding ccb3c4b: Demonstrate nbsp embedding in '.product' |
Date: |
Fri, 24 Jan 2020 15:17:58 -0500 (EST) |
branch: odd/nbsp_embedding
commit ccb3c4b73eb0ea7192891147da8023036b76b8ad
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Demonstrate nbsp embedding in '.product'
"FundRateFootnote" has two {0,1}-suffixed variants that are soon to be
terminated with extreme prejudice. These variants are used only here:
<p>{{FundRateFootnote}}</p>
<p> {{FundRateFootnote0}}</p>
<p> {{FundRateFootnote1}}</p>
where
<p>{{FundRateFootnote}}</p>
alone will suffice, once the original contents of the strings are
merged with delimiting literal nbsps and pilcrows. The intention, for
the one product that uses these variants, is to say something like:
Today's crediting rates are
1.23% for division A, and
4.56% for division B.
But that (proprietary) product is not currently illustratable, so this
throwaway change is offered to facilitate testing. Test immediately
before and immediately after the impending commit to simplify
'ill_reg_narr_summary2.mst' as above.
Double the pilcrows to emulate the old MST code exactly if wanted: its
<p> elements introduce an extra space between lines, which is assumed
to be an unintended side effect.
---
product_data.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/product_data.cpp b/product_data.cpp
index 07b7000..cc0e752 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -668,6 +668,9 @@ sample2::sample2()
sample2naic::sample2naic()
{
+ item("FundRateFootnote") = glossed_string
+ ("{FundRateFootnote}¶ {FundRateFootnote0}¶ {FundRateFootnote1}"
+ );
}
sample2finra::sample2finra()