From 53654b430ee33f460181917a92408d360f8d93b9 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 7 Jan 2017 17:46:18 +0100 Subject: [PATCH] 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 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 51d47443a9..025679f316 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;