Set "dryrun" to true for XHTML copying routine. This suppresses

the production of images, etc, making copying even the entire
User's Guide and almost instantaneous operation.
This commit is contained in:
Richard Heck 2013-05-04 08:25:21 -04:00
parent dae6ca73df
commit 030326466f

View File

@ -530,6 +530,8 @@ void putClipboard(ParagraphList const & paragraphs,
// XHTML format
odocstringstream oshtml;
OutputParams runparams(encodings.fromLyXName("utf8"));
// We do not need to produce images, etc.
runparams.dryrun = true;
buffer->writeLyXHTMLSource(oshtml, runparams, Buffer::FullSource);
theClipboard().put(lyx, oshtml.str(), plaintext);