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.
This commit is contained in:
Juergen Spitzmueller 2017-01-07 17:46:18 +01:00
parent 2ff40fba72
commit 53654b430e

View File

@ -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;