From: Guillaume Munch Date: Thu, 17 Dec 2015 01:04:25 +0000 (+0000) Subject: Work around bug #9841 X-Git-Tag: 2.2.0beta1~350 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc016de34eab3fe24d9673a48cabf754bebbadaa;p=features.git Work around bug #9841 \output_changes is now output at a distance from \tracking_changes. Since both parameters can be seen as per-user preferences, they can cause undesirable merge conflicts, in a multi-author setting, were it treated as a single block by the version control system, as was the case before this patch. --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index ee9f535f99..a5c3bfa2fc 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1275,9 +1275,14 @@ void BufferParams::writeFile(ostream & os, Buffer const * buf) const } os << "\\tracking_changes " << convert(track_changes) << '\n' - << "\\output_changes " << convert(output_changes) << '\n' << "\\html_math_output " << html_math_output << '\n' << "\\html_css_as_file " << html_css_as_file << '\n' + // \output_changes is output at a distance from \tracking changes as a + // workaround to bug #9841: both parameters can be seen as per-user + // preferences and therefore can cause undesirable merge conflicts, in a + // multi-author setting, if it were treated as a single block by the + // version control system. + << "\\output_changes " << convert(output_changes) << '\n' << "\\html_be_strict " << convert(html_be_strict) << '\n'; if (html_math_img_scale != 1.0)