- string disp;
- disp += quote_char[quote_index[side_][language_]];
- if (times_ == DoubleQ)
- disp += disp;
-
-
- docstring retdisp;
- if (disp == "<<")
- retdisp = docstring(1, 0x00ab); //'«';
- else if (disp == ">>")
- retdisp = docstring(1, 0x00bb); //'»';
-#if 0
- // The below are supposed to work, but something fails.
- else if (disp == ",,")
- retdisp = docstring(1, 0x201e);
- else if (disp == "''")
- retdisp == docstring(1, 0x201d);
- else if (disp == "``")
- retdisp == docstring(1, 0x201c);
- else if (disp == "<")
- retdisp = docstring(1, 0x2039);
- else if (disp == ">")
- retdisp = docstring(1, 0x203a);
- else if (disp == ",")
- retdisp = docstring(1, 0x201a);
- else if (disp == "'")
- retdisp = docstring(1, 0x2019);
- else if (disp == "`")
- retdisp = docstring(1, 0x2018);
-#endif
- else
- retdisp = from_ascii(disp);
+ Language const * loclang = buffer().params().language;
+ int const index = quote_index[side_][language_];
+ docstring retdisp = docstring(1, display_quote_char[times_][index]);