summaryrefslogtreecommitdiffstats
path: root/src/htmlentity.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-11-27 13:26:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-11-27 13:26:50 (GMT)
commit0cb39b4cf9f1e89720cb19f58158b90ecf0b75ef (patch)
tree4ee6086b53093b10ffade7b2e96c3d37f58cbae4 /src/htmlentity.cpp
parent0fea3d4ca57187f271d7580ff16f32b7ab4657df (diff)
downloadDoxygen-0cb39b4cf9f1e89720cb19f58158b90ecf0b75ef.zip
Doxygen-0cb39b4cf9f1e89720cb19f58158b90ecf0b75ef.tar.gz
Doxygen-0cb39b4cf9f1e89720cb19f58158b90ecf0b75ef.tar.bz2
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.
Diffstat (limited to 'src/htmlentity.cpp')
-rw-r--r--src/htmlentity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htmlentity.cpp b/src/htmlentity.cpp
index a4d5914..9327526 100644
--- a/src/htmlentity.cpp
+++ b/src/htmlentity.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 }},