commit 53654b430ee33f460181917a92408d360f8d93b9 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sat Jan 7 17:46:18 2017 +0100
Make max_key_size limit adjustable This _must_ be increased for xhtml output of fullcite, else we get fragmentary html code. I am aware of the reason for this size limit (#8944) and have carefully checked that this is not affected. --- src/BiblioInfo.cpp | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 51d4744..025679f 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -512,9 +512,10 @@ docstring BibTeXInfo::expandFormat(docstring const & format, static int const max_passes = 5000; // the use of overly large keys can lead to performance problems, due // to eventual attempts to convert LaTeX macros to unicode. See bug - // #8944. This is perhaps not the best solution, but it will have to - // do for now. - static size_t const max_keysize = 128; + // #8944. By default, the size is limited to 128 (in CiteItem), but + // for specific purposes (such as XHTML export), it needs to be enlarged + // This is perhaps not the best solution, but it will have to do for now. + size_t const max_keysize = ci.max_key_size; odocstringstream ret; // return value string key; bool scanning_key = false;