Permalink
Browse files

LaTeX problem with 2 consecutive single quotes

In LaTeX 2 consecutive single quotes are joined to 1 double quote. This leads in texts where 2 single quotes are intended to a strange view. An example is the initial value for variables. E.g. in Fortran: character(len=10) :: A = ''  (i.e an empty string which can either be defined as '' or as "") or in C: char *sq  = "''". In the source listings this is OK but in the description text it was not OK.
  • Loading branch information...
albert-github committed Nov 27, 2014
1 parent 0fea3d4 commit 0cb39b4cf9f1e89720cb19f58158b90ecf0b75ef
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/htmlentity.cpp
  2. +2 −0 src/util.cpp
@@ -298,7 +298,7 @@ static struct htmlEntityInfo
// doxygen extension to the HTML4 table of HTML entities
{ SYM(tm), "\xe2\x84\xa2", "&trade;", "<trademark/>", "&#8482;", "\\texttrademark{}", "(TM)", "\\'99", { "trademark", DocSymbol::Perl_symbol }},
{ SYM(apos), "'", "'", "'", "&apos;", "'", "'", "'", { "\\\'", DocSymbol::Perl_string }},
{ SYM(apos), "'", "'", "'", "&apos;", "\\textquotesingle{}", "'", "'", { "\\\'", DocSymbol::Perl_string }},
// doxygen commands represented as HTML entities
{ SYM(BSlash), "\\", "\\", "\\", "\\", "\\textbackslash{}", "\\\\", "\\\\", { "\\\\", DocSymbol::Perl_string }},
@@ -6500,6 +6500,8 @@ void filterLatexString(FTextStream &t,const char *str,
break;
case '"': t << "\\char`\\\"{}";
break;
case '\'': t << "\\textquotesingle{}";
break;
default:
//if (!insideTabbing && forceBreaks && c!=' ' && *p!=' ')

0 comments on commit 0cb39b4

Please sign in to comment.