From e960a2bcd3aaabe72d51b30bd92a828714009922 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 13 Dec 2009 09:50:30 +0000 Subject: [PATCH] * BiblioInfo.cpp (convertLaTeXCommands): - fix parsing of thin space (\,). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32504 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BiblioInfo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 2b9911ea89..8c73ac1d8e 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -129,10 +129,14 @@ docstring convertLaTeXCommands(docstring const & str) scanning_cmd = false; } - // was the last character a \? If so, then this is something like: \\, + // was the last character a \? If so, then this is something like: \\ // or \$, so we'll just output it. That's probably not always right... if (escaped) { - ret += ch; + // exception: output \, as THIN SPACE + if (ch == ',') + ret.push_back(0x2009); + else + ret += ch; val = val.substr(1); escaped = false; continue; -- 2.39.5