From b5e1e195bc207c7bb93df4e51253f9f3a1026a3d Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 21 Sep 2016 20:24:15 +0200 Subject: Bug 771310 - French description for "Namespace Members" is wrong and causes fatal javascript error --- src/index.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 96909c7..41e3318 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -4327,8 +4327,8 @@ void renderMemberIndicesAsJs(FTextStream &t, t << "children:["; firstMember=FALSE; } - t << endl << "{text:'" << convertToJSString(getInfo(i)->title) << "',url:'" - << convertToJSString(getInfo(i)->fname+Doxygen::htmlFileExtension) << "'"; + t << endl << "{text:\"" << convertToJSString(getInfo(i)->title) << "\",url:\"" + << convertToJSString(getInfo(i)->fname+Doxygen::htmlFileExtension) << "\""; // Check if we have many members, then add sub entries per letter... // quick alphabetical index @@ -4357,8 +4357,8 @@ void renderMemberIndicesAsJs(FTextStream &t, anchor=fullName+extension+"#index_"; else // other pages of multi page index anchor=fullName+"_"+is+extension+"#index_"; - t << "{text:'" << convertToJSString(ci) << "',url:'" - << convertToJSString(anchor+is) << "'}"; + t << "{text:\"" << convertToJSString(ci) << "\",url:\"" + << convertToJSString(anchor+is) << "\"}"; firstLetter=FALSE; } t << "]"; @@ -4393,8 +4393,8 @@ static bool renderQuickLinksAsJs(FTextStream &t,LayoutNavEntry *root,bool first) if (!firstChild) t << "," << endl; firstChild=FALSE; QCString url = entry->url(); - t << "{text:'" << convertToJSString(entry->title()) << "',url:'" - << convertToJSString(url) << "'"; + t << "{text:\"" << convertToJSString(entry->title()) << "\",url:\"" + << convertToJSString(url) << "\""; bool hasChildren=FALSE; if (entry->kind()==LayoutNavEntry::NamespaceMembers) { -- cgit v0.12