Skip to content

Commit

Permalink
webcards
Browse files Browse the repository at this point in the history
Improve links between Contents and concerns sections
  • Loading branch information
tnut committed Mar 12, 2024
1 parent 1b133fd commit 27556cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webcards.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ std::vector<std::string> parseHTMLDelimitedList
page.push_back( "<div class=\"toc\">\n <h2>");
page.push_back( contentTitle );
page.push_back( "</h2>");
page.push_back( " <ul style=\"list-style-type: none; padding: 0;\">" );
page.push_back( " <ul class=\"h2\">" );
}
haveContent = true;
ref++;
Expand All @@ -81,7 +81,7 @@ std::vector<std::string> parseHTMLDelimitedList
if ( headerLevel != previousHeaderLevel ) {
int i = headerLevel ;
while ( i > previousHeaderLevel ) { /* means > '2' */
sRef += "<li>\n <ul style=\"list-style-type: none;\">";
sRef += "<li>\n <ul class=\"hN\">";
i--;
}
i = headerLevel ;
Expand All @@ -100,8 +100,8 @@ std::vector<std::string> parseHTMLDelimitedList
Newline += "<a name=\"";
Newline += itos(ref);
Newline += "\"></a>";
Newline += line;
body.push_back(Newline);
line.insert(start,Newline);
body.push_back(line);
}
/* We'll need to know what was the previous level */
previousHeaderLevel = headerLevel;
Expand Down

0 comments on commit 27556cf

Please sign in to comment.