From c5b7d871e014e3cae31fc4c91dd010abff004e89 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 14 Jan 2021 08:55:15 +0100 Subject: [PATCH] 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 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index b0d678dded..9fd91cfca0 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(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 ? -- 2.39.2