Skip to content

Commit 9065ef3

Browse files
authored
Merge pull request doxygen#12024 from albert-github/feature/bug_alphasepar
Create a bit more flexibility in alphabetical lists
2 parents 7550afb + 97f3823 commit 9065ef3

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

src/index.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
#define MAX_ITEMS_BEFORE_MULTIPAGE_INDEX 200
5656
#define MAX_ITEMS_BEFORE_QUICK_INDEX 30
5757

58+
constexpr auto alphaSepar = "<div class=\"alphasepar\"></div>";
59+
5860
// helpers
5961
static int countClassHierarchy(ClassDef::CompoundType ct);
6062
static void countFiles(int &htmlFiles,int &files);
@@ -2312,7 +2314,7 @@ static void writeAlphabeticalClassList(OutputList &ol, ClassDef::CompoundType ct
23122314
bool first=true;
23132315
for (const auto &letter : indexLettersUsed)
23142316
{
2315-
if (!first) alphaLinks += "&#160;|&#160;";
2317+
if (!first) alphaLinks += alphaSepar;
23162318
first=false;
23172319
QCString li = letterToLabel(letter);
23182320
alphaLinks += "<a class=\"qindex\" href=\"#letter_" +
@@ -3145,7 +3147,7 @@ static void writeMemberIndex(OutputList &ol,
31453147
else
31463148
anchor=fullName+"_"+is+extension+"#index_";
31473149

3148-
if (!first) alphaLinks += "&#160;|&#160;";
3150+
if (!first) alphaLinks += alphaSepar;
31493151
first=false;
31503152
QCString li = letterToLabel(letter);
31513153
alphaLinks += "<a class=\"qindex\" href=\"" + anchor +

templates/html/doxygen.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,19 @@ td.navtabHL {
150150
background-color: var(--nav-menu-active-bg);
151151
}
152152

153+
div.alphasepar:before{
154+
content: " | " ;
155+
width: 14px;
156+
display: inline-block;
157+
text-align: center;
158+
line-height: 140%;
159+
font-size: 130%;
160+
}
161+
162+
div.alphasepar{
163+
display: inline-block;
164+
}
165+
153166
div.qindex{
154167
text-align: center;
155168
width: 100%;

0 commit comments

Comments
 (0)