Skip to content

Commit

Permalink
now the div are span for the kw in the listings (#1190)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniele Rapetti <[email protected]>
  • Loading branch information
Iximiel and Iximiel authored Jan 29, 2025
1 parent 2fc6844 commit c4fee1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cltools/GenExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ void GenExample::printExampleInput( const std::vector<std::vector<std::string> >
std::size_t eq=interpreted[i].find_first_of("=");
if( eq!=std::string::npos ) {
std::string keyword=interpreted[i].substr(0,eq), rest=interpreted[i].substr(eq+1);
ofile<<"<div class=\"tooltip\">"<<keyword<<"<div class=\"right\">"<<keys.getTooltip(keyword)<<"<i></i></div></div>";
ofile<<"<span class=\"tooltip\">"<<keyword<<"<span class=\"right\">"<<keys.getTooltip(keyword)<<"<i></i></span></span>";
if( rest=="__FILL__" ) {
if( status!="incomplete" ) {
error("found __FILL__ statement but status is " + status);
Expand Down Expand Up @@ -447,7 +447,7 @@ void GenExample::printExampleInput( const std::vector<std::vector<std::string> >
ofile<<" ";
} else if( interpreted[i]!="@newline" && interpreted[i]!="..." ) {
myinputline += interpreted[i] + " ";
ofile<<"<div class=\"tooltip\">"<<interpreted[i]<<"<div class=\"right\">"<<keys.getTooltip(interpreted[i])<<"<i></i></div></div> ";
ofile<<"<span class=\"tooltip\">"<<interpreted[i]<<"<span class=\"right\">"<<keys.getTooltip(interpreted[i])<<"<i></i></span></span> ";
} else if( interpreted[i]=="..." ) {
ofile<<"...";
}
Expand Down

1 comment on commit c4fee1a

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.