commit c5b7d871e014e3cae31fc4c91dd010abff004e89
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Jan 14 08:55:15 2021 +0100

    Strip % characters from nomenclWidest()
    
    This character now (oddly) serves as escape char in newer nomencl versions
    but it still comments out in all other contexts.
    
    See #10634
---
 src/insets/InsetNomencl.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp
index b0d678d..9fd91cf 100644
--- a/src/insets/InsetNomencl.cpp
+++ b/src/insets/InsetNomencl.cpp
@@ -393,10 +393,13 @@ docstring nomenclWidest(Buffer const & buffer, 
OutputParams const & runparams)
                                continue;
                        nomencl = static_cast<InsetNomencl const *>(inset);
                        // Use proper formatting. We do not escape makeindex 
chars here
-                       docstring const symbol = nomencl ?
+                       docstring symbol = nomencl ?
                                nomencl->params().prepareCommand(runparams, 
nomencl->getParam("symbol"),
                                                        
ParamInfo::HANDLING_LATEXIFY)
                                : docstring();
+                       // strip out % characters which are used as escape in 
nomencl
+                       // but act as comment in out context here“
+                       symbol = subst(symbol, from_ascii("%"), docstring());
                        // This is only an approximation,
                        // but the best we can get.
                        int const wx = use_gui ?
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to